Class WritableImageWrapper
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.AbstractImageWrapper<javafx.scene.image.WritableImage>
-
- science.aist.imaging.openjfx.imageprocessing.wrapper.WritableImageWrapper
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,ImageWrapper<javafx.scene.image.WritableImage>
public class WritableImageWrapper extends AbstractImageWrapper<javafx.scene.image.WritableImage>
ImageWrapper implementation for JavaFX's
WritableImage
- Since:
- 1.2
- 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 Constructor Description WritableImageWrapper(javafx.scene.image.WritableImage image, ChannelType channelType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
Class<javafx.scene.image.WritableImage>
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, getChannels, getValues, getValuesAsColor, setValues, setValues, supportsParallelAccess
-
-
-
-
Constructor Detail
-
WritableImageWrapper
public WritableImageWrapper(javafx.scene.image.WritableImage image, ChannelType channelType)
-
-
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<javafx.scene.image.WritableImage> getSupportedType()
- Returns:
- the supported image type.
-
-