Welcome Guest (Log in)

LC ImageToolBox_89_DROI

Imagedata (10) | LC 8+9 (10) | Image (9) | Browser widget (6)
Expander triangle
  • Author
  • Rating
  • Type
  • Revision
  • Downloaded
  • Updated
  • Hermann Hoch
  • StarStarStarStarStar
  • Stack
  • 6
  • 1040 Times
  • 07 October 2017
## 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 ROI and rewritten javascript
## v1.0.3 ... Apr 14, 2017 removed linux issues
## v1.0.2 ... Mar 26, 2017 added revert to savedState
## v1.0.1 ... Mar 25, 2017 first public version
## See credits at top of the HTMLText in the stack


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 browser widget. Performance depends on your hardware (or virtual machine hardware part).
The stack runs in LC 8/9 on Mac and Win (and linux**). Identical effects are available (on Mac only) from LC-ImageToolBox67_Basics_DROI_125 for LC 6/7/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 use please pay once a small fee to the LC-developer-help-fund.

** See the LC-Forum
for instructions how to solve this. Thanks to Max Vessi for elaborating the shell-script for that.

Thanks to Jonathan Lynch for hinting to the possibilty to use the browser widget for image processing.
Ajax Loader
Expander triangle
User Comments
Expander triangle