•Region Of Interest --- Area Selection

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

Selected area, created by moving a mouse clockwise, is returned as Java's Polygon object.

poly = GetAreaSelection[frame]

Bounds of the selected area is returned.

rct2 = GetAreaSelectionBounds[frame]

pts = Transpose[GetPointsAsList[frame]] ;

ListPlot[pts, AspectRatio -> Automatic, PlotJoined -> True]

poly = GetAreaSelectionAsPolygon[frame]

Show[Graphics[poly], AspectRatio -> Automatic]

sourceImage = panel @ getSourceImage[] ; jpeG2 = ShowJavaImage[sourceImage, rct2[[1]], rct2[[2]], rct2[[3]], rct2[[4]]]


Converted by Mathematica  (July 17, 2003)