Class FImageWrapper
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.AbstractImageWrapper<org.openimaj.image.FImage>
-
- science.aist.imaging.openimaj.imageprocessing.wrapper.FImageWrapper
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,ImageWrapper<org.openimaj.image.FImage>
public class FImageWrapper extends AbstractImageWrapper<org.openimaj.image.FImage>
Implementation of a
ImageWrapper
for OpenIMAJ'sFImage
- Since:
- 1.1
- Author:
- Christoph Praschl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.api.domain.wrapper.AbstractImageWrapper
channelType, closed, image
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FImageWrapper(org.openimaj.image.FImage image, ChannelType channelType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChannels()
int
getHeight()
Class<org.openimaj.image.FImage>
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
close, 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, getValues, getValuesAsColor, setValues, setValues, supportsParallelAccess
-
-
-
-
Constructor Detail
-
FImageWrapper
protected FImageWrapper(org.openimaj.image.FImage image, ChannelType channelType)
-
-
Method Detail
-
getWidth
public int getWidth()
- Returns:
- The image width
-
getHeight
public int getHeight()
- Returns:
- The image height
-
getChannels
public int getChannels()
- Returns:
- The number of channels
-
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.openimaj.image.FImage> getSupportedType()
- Returns:
- the supported image type.
-
-