org.robokind.impl.vision
Class PortableImageEvent
java.lang.Object
org.robokind.impl.vision.PortableImageEvent
- All Implemented Interfaces:
- org.robokind.api.vision.ImageEvent
public class PortableImageEvent
- extends Object
- implements org.robokind.api.vision.ImageEvent
ImageEvent implementation wrapping an ImageEventRecord.
Creates and caches a Java Image from the image data.
- Author:
- Matthew Stevenson
Constructor Summary |
PortableImageEvent(org.robokind.avrogen.vision.ImageRecord record)
Creates a new PortableImageEvent wrapping the given ImageRecord. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortableImageEvent
public PortableImageEvent(org.robokind.avrogen.vision.ImageRecord record)
- Creates a new PortableImageEvent wrapping the given ImageRecord.
- Parameters:
record
- ImageRecord to wrap
getImage
public Image getImage()
- Specified by:
getImage
in interface org.robokind.api.vision.ImageEvent
getImageRecord
public org.robokind.avrogen.vision.ImageRecord getImageRecord()
- Returns the underlying ImageRecord.
- Returns:
- underlying ImageRecord
getImageSourceId
public String getImageSourceId()
- Specified by:
getImageSourceId
in interface org.robokind.api.vision.ImageEvent
getImageTimestampUTC
public long getImageTimestampUTC()
- Specified by:
getImageTimestampUTC
in interface org.robokind.api.vision.ImageEvent
getImageId
public long getImageId()
- Specified by:
getImageId
in interface org.robokind.api.vision.ImageEvent
getWidth
public int getWidth()
- Specified by:
getWidth
in interface org.robokind.api.vision.ImageEvent
getHeight
public int getHeight()
- Specified by:
getHeight
in interface org.robokind.api.vision.ImageEvent
getChannelCount
public int getChannelCount()
- Specified by:
getChannelCount
in interface org.robokind.api.vision.ImageEvent
getWidthStep
public int getWidthStep()
- Specified by:
getWidthStep
in interface org.robokind.api.vision.ImageEvent
Copyright © 2011. All Rights Reserved.