Package adams.data.boofcv
Class BoofCVImageContainer
- java.lang.Object
-
- adams.data.container.AbstractSimpleContainer<T>
-
- adams.data.image.AbstractImageContainer<boofcv.struct.image.ImageBase>
-
- adams.data.boofcv.BoofCVImageContainer
-
- All Implemented Interfaces:
CloneHandler<AbstractSimpleContainer<boofcv.struct.image.ImageBase>>,UniqueIDHandler,BufferedImageSupporter,MutableNotesHandler,NotesHandler,MutableReportHandler<Report>,ReportHandler<Report>,Serializable
public class BoofCVImageContainer extends AbstractImageContainer<boofcv.struct.image.ImageBase>
Image wrapper around aImageBaseused by BoofCV.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.image.AbstractImageContainer
FIELD_FILENAME, FIELD_NAME, FIELD_PATH
-
Fields inherited from class adams.data.container.AbstractSimpleContainer
m_Content, m_Notes, m_Report, m_UUID
-
-
Constructor Summary
Constructors Constructor Description BoofCVImageContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boofcv.struct.image.ImageBasecloneContent()Returns a clone of the image.intgetHeight()Returns the height of the image.intgetWidth()Returns the width of the image.BufferedImagetoBufferedImage()Turns the image into a buffered image.-
Methods inherited from class adams.data.image.AbstractImageContainer
getImage, setImage
-
Methods inherited from class adams.data.container.AbstractSimpleContainer
getClone, getContent, getHeader, getNotes, getReport, getUniqueID, hasReport, initialize, setContent, setNotes, setReport, toString
-
-
-
-
Method Detail
-
getWidth
public int getWidth()
Returns the width of the image.- Specified by:
getWidthin classAbstractImageContainer<boofcv.struct.image.ImageBase>- Returns:
- the width
-
getHeight
public int getHeight()
Returns the height of the image.- Specified by:
getHeightin classAbstractImageContainer<boofcv.struct.image.ImageBase>- Returns:
- the height
-
cloneContent
protected boofcv.struct.image.ImageBase cloneContent()
Returns a clone of the image. Actually, only forImageGraya clone is returned, all other types are a "subimage" with the same size as the original.- Specified by:
cloneContentin classAbstractSimpleContainer<boofcv.struct.image.ImageBase>- Returns:
- the clone/subimage
-
toBufferedImage
public BufferedImage toBufferedImage()
Turns the image into a buffered image.- Specified by:
toBufferedImagein interfaceBufferedImageSupporter- Specified by:
toBufferedImagein classAbstractImageContainer<boofcv.struct.image.ImageBase>- Returns:
- the buffered image
-
-