jaitools.media.jai.regionalize
Class Region

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

public class Region
extends java.lang.Object

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

Since:
1.0
Version:
$Id: Region.java 812 2009-09-16 11:29:34Z michael.bedward $
Author:
Michael Bedward

Method Summary
 java.awt.Rectangle getBounds()
          Get the bounding pixel coordinates of this region
 int getId()
          Get the unique integer ID of this region
 int getNumPixels()
          Get the number of pixels within this region
 double getRefValue()
          Get the reference value for this region as a double.
 java.lang.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()
Get the unique integer ID of this region


getBounds

public java.awt.Rectangle getBounds()
Get the bounding pixel coordinates of this region

Returns:
a copy of the region's bounding rectangle

getNumPixels

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


getRefValue

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


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2010. All Rights Reserved.