org.jaitools.media.jai.regionalize
Class Region

java.lang.Object
  extended by org.jaitools.media.jai.regionalize.Region

public class Region
extends Object

Holds summary data for a single region of uniform value identified in the image

Since:
1.0
Version:
$Id$
Author:
Michael Bedward

Method Summary
 Rectangle getBounds()
          Gets the bounding pixel coordinates of this region.
 int getId()
          Getss the unique integer ID of this region.
 int getNumPixels()
          Gets the number of pixels within this region.
 double getRefValue()
          Gets the reference value for this region as a double.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public int getId()
Getss the unique integer ID of this region.

Returns:
the ID value

getBounds

public Rectangle getBounds()
Gets the bounding pixel coordinates of this region.

Returns:
a copy of the region's bounding rectangle

getNumPixels

public int getNumPixels()
Gets the number of pixels within this region.

Returns:
number of pixels

getRefValue

public double getRefValue()
Gets the reference value for this region as a double. This is the value of the first pixel that was identified within the region.

Returns:
reference (starting) value

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013. All Rights Reserved.