org.robokind.impl.vision
Class PortableImageRegion
java.lang.Object
org.robokind.impl.vision.PortableImageRegion
- All Implemented Interfaces:
- org.robokind.api.vision.ImageRegion
public class PortableImageRegion
- extends Object
- implements org.robokind.api.vision.ImageRegion
ImageRegion implementation wrapping an ImageRegionRecord.
- Author:
- Matthew Stevenson
Constructor Summary |
PortableImageRegion(org.robokind.avrogen.vision.ImageRegionRecord region)
Creates a new PortableImageRegion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortableImageRegion
public PortableImageRegion(org.robokind.avrogen.vision.ImageRegionRecord region)
- Creates a new PortableImageRegion.
- Parameters:
region
- ImageRegionRecord to wrap
getRegionId
public long getRegionId()
- Specified by:
getRegionId
in interface org.robokind.api.vision.ImageRegion
getX
public int getX()
- Specified by:
getX
in interface org.robokind.api.vision.ImageRegion
getY
public int getY()
- Specified by:
getY
in interface org.robokind.api.vision.ImageRegion
getWidth
public int getWidth()
- Specified by:
getWidth
in interface org.robokind.api.vision.ImageRegion
getHeight
public int getHeight()
- Specified by:
getHeight
in interface org.robokind.api.vision.ImageRegion
getImageRegionRecord
public org.robokind.avrogen.vision.ImageRegionRecord getImageRegionRecord()
- Returns the underlying ImageRegionRecord.
- Returns:
- underlying ImageRegionRecord
Copyright © 2011. All Rights Reserved.