•Marquee Rect

[Graphics:../HTMLFiles/index_238.gif]

ImageData is created by JavaImageToImageData[ ] function.

In[64]:=

rct = GetMarqueeBounds[frame]

In[65]:=

id = JavaImageToImageData[panel @ getSourceImage[], rct[[1]], rct[[2]], rct[[3]], rct[[4]]]

The image previously clipped by the marquee rect tool is shown again through the ImageData.

In[66]:=

Show[Graphics[id]]

An image processing operation is applied to the ImageData.

In[67]:=

th = RegionProcessing[Threshold[#1, 164, {0, 255}] &, id, Rectangle[{1, 1}, {rct[[4]], rct[[3]]}]]

The result ImageData is shown.

In[68]:=

Show[Graphics[th]]


Converted by Mathematica  (July 17, 2003)