Welcome Guest (Log in)


Image (10) | Imagedata (10) | LC 6+7+8 (8) | LC 9 (8) | RevBrowser (3)
Expander triangle
  • Author
  • Rating
  • Type
  • Revision
  • Downloaded
  • Updated
  • Hermann Hoch
  • StarStarStarStarStar
  • Stack
  • 8
  • 809 Times
  • 08 October 2017
LC-ImageToolBox_6789_Basics_DROI_125 (Mac only)
## v1.2.5 ... Oct 07, 2017 ... added Dithering (and a custom color chooser**)
## v1.2.0 ... Aug 11, 2017 ... removed bug when using no region-of-interest
## v1.1.1 ... Jun 12, 2017 ... added rewritten javascript
## v1.1.0 ... Jun 12, 2017 ... added ROI
## v1.0.2 ... Mar 26, 2017 ... first public version
## See credits at top of the HTMLText in the stack.
** The color chooser is now included and needed for use with MacOS 10.13. An earlier MacOS could also use "answer color" (which crashes on Mac OS 10.13).


This stack runs with LC 6/7/8 on Mac only.
Use LCImageToolBox89_DROI for LC 8/9 on Mac/Win/linux.

It is sometimes of interest to process a single sub-region of an image, leaving other regions unchanged. This is commonly referred to as region-of-interest (ROI) processing. We specify such a ROI by an editable polygon, an oval or a rectangle.
You may choose to use a selected region as ROI or not the selected region (or process the whole image).
[The D in 'DROI' stands for Dithering (Atkinson, Floyd-Steinberg, ...)]

We use Canvas2D only (no webGL because of issues with some graphic cards) in a hidden revBrowser instance. Performance depends on your hardware (or virtual machine hardware part). The stack runs in LC 6/7/8/9 on Mac (= the revBrowser-platform that supports Canvas2d, the stackfileversion is 55). Identical effects are available on Mac/Win from LC-ImageToolBox89_Basics for LC 8/9.

The URL of the browser is always empty, its htmlText is set by the script. Look at the javascript part of the HTML field to see that the core of the scripts is very similar to handling the imageData in LCScript.

To show this similarity to LCScript is the main purpose of this stack.

Scripts are free for non-commercial use. For commercial usage please pay once a small fee to the LC-developer-help-fund.
Ajax Loader
Expander triangle
User Comments
Expander triangle