![[Graphics:../HTMLFiles/index_238.gif]](../HTMLFiles/index_238.gif)
ImageData is created by JavaImageToImageData[ ] function.
In[64]:=
![rct = GetMarqueeBounds[frame]](../HTMLFiles/index_241.gif)
In[65]:=
![id = JavaImageToImageData[panel @ getSourceImage[], rct[[1]], rct[[2]], rct[[3]], rct[[4]]]](../HTMLFiles/index_244.gif)
The image previously clipped by the marquee rect tool is shown again through the ImageData.
In[66]:=
![Show[Graphics[id]]](../HTMLFiles/index_248.gif)
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]]}]]](../HTMLFiles/index_251.gif)
The result ImageData is shown.
In[68]:=
![Show[Graphics[th]]](../HTMLFiles/index_255.gif)
Converted by Mathematica (July 17, 2003)