Class JavaCVImageWrapper
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.AbstractImageWrapper<org.bytedeco.opencv.opencv_core.Mat>
-
- science.aist.imaging.javacv.imageprocessing.wrapper.JavaCVImageWrapper
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,ImageWrapper<org.bytedeco.opencv.opencv_core.Mat>
public class JavaCVImageWrapper extends AbstractImageWrapper<org.bytedeco.opencv.opencv_core.Mat>
Implementation of the ImageWrapper Interface for JavaCV
- Since:
- 2.0
- Author:
- Christoph Praschl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.api.domain.wrapper.AbstractImageWrapper
channelType, closed, image
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Overrides signature of close method fromAutoCloseable
Interface to not throw an exceptionint
getHeight()
Class<org.bytedeco.opencv.opencv_core.Mat>
getSupportedType()
double
getValue(int x, int y, int channel)
Returns the value for a specific pixel and channelint
getWidth()
void
setValue(int x, int y, int channel, double val)
Sets a value for a specific pixel and channel-
Methods inherited from class science.aist.imaging.api.domain.wrapper.AbstractImageWrapper
equals, freeAllocatedImageWrappers, getChannelType, getImage, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.domain.wrapper.ImageWrapper
applyColumnFunction, applyFunction, applyFunction, applyFunction, applyFunction, copyTo, createCopy, createCopy, getChannels, getValues, getValuesAsColor, setValues, setValues, supportsParallelAccess
-
-
-
-
Method Detail
-
getWidth
public int getWidth()
- Returns:
- The image width
-
getHeight
public int getHeight()
- Returns:
- The image height
-
getValue
public double getValue(int x, int y, int channel)
Description copied from interface:ImageWrapper
Returns the value for a specific pixel and channel- Parameters:
x
- the x-coordinate of the pixely
- the y-coordinate of the pixelchannel
- the channel to select of a specific pixel- Returns:
- the value for the pixel and channel
-
setValue
public void setValue(int x, int y, int channel, double val)
Description copied from interface:ImageWrapper
Sets a value for a specific pixel and channel- Parameters:
x
- the x-coordinate of the pixely
- the y-coordinate of the pixelchannel
- the channel to select of a specific pixelval
- the value for the pixel and channel
-
getSupportedType
public Class<org.bytedeco.opencv.opencv_core.Mat> getSupportedType()
- Returns:
- the supported image type.
-
close
public void close()
Description copied from interface:ImageWrapper
Overrides signature of close method fromAutoCloseable
Interface to not throw an exception- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceImageWrapper<org.bytedeco.opencv.opencv_core.Mat>
- Overrides:
close
in classAbstractImageWrapper<org.bytedeco.opencv.opencv_core.Mat>
-
-