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 aImageBase
used 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.ImageBase
cloneContent()
Returns a clone of the image.int
getHeight()
Returns the height of the image.int
getWidth()
Returns the width of the image.BufferedImage
toBufferedImage()
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:
getWidth
in classAbstractImageContainer<boofcv.struct.image.ImageBase>
- Returns:
- the width
-
getHeight
public int getHeight()
Returns the height of the image.- Specified by:
getHeight
in classAbstractImageContainer<boofcv.struct.image.ImageBase>
- Returns:
- the height
-
cloneContent
protected boofcv.struct.image.ImageBase cloneContent()
Returns a clone of the image. Actually, only forImageGray
a clone is returned, all other types are a "subimage" with the same size as the original.- Specified by:
cloneContent
in classAbstractSimpleContainer<boofcv.struct.image.ImageBase>
- Returns:
- the clone/subimage
-
toBufferedImage
public BufferedImage toBufferedImage()
Turns the image into a buffered image.- Specified by:
toBufferedImage
in interfaceBufferedImageSupporter
- Specified by:
toBufferedImage
in classAbstractImageContainer<boofcv.struct.image.ImageBase>
- Returns:
- the buffered image
-
-