Class Image8Byte
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.AbstractImageWrapper<double[][][]>
-
- science.aist.imaging.api.domain.wrapper.implementation.Image8Byte
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,ImageWrapper<double[][][]>
public class Image8Byte extends AbstractImageWrapper<double[][][]>
Image wrapper for images with 8 byte precision
- Since:
- 1.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 boolean
equals(Object o)
UsesGenericImageCompareFunction
to compare if the two image wrappers are equal.Class<double[][][]>
getSupportedType()
double
getValue(int x, int y, int channel)
Returns the value for a specific pixel and channeldouble[]
getValues(int x, int y)
Returns all value for a given coordinateint
hashCode()
Generated Codevoid
setValue(int x, int y, int channel, double val)
Sets a value for a specific pixel and channelvoid
setValues(int x, int y, double[] values)
Sets values for the given coordinateboolean
supportsParallelAccess()
-
Methods inherited from class science.aist.imaging.api.domain.wrapper.AbstractImageWrapper
close, freeAllocatedImageWrappers, getChannelType, getImage
-
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, getHeight, getValuesAsColor, getWidth, setValues
-
-
-
-
Method Detail
-
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
-
supportsParallelAccess
public boolean supportsParallelAccess()
- Returns:
- true iff the image wrapper supports parallel write access. Else false
-
getSupportedType
public Class<double[][][]> getSupportedType()
- Returns:
- the supported image type.
-
equals
public boolean equals(Object o)
Description copied from class:AbstractImageWrapper
UsesGenericImageCompareFunction
to compare if the two image wrappers are equal. If the obj is not a imagewrapper then super.equals will be called.- Overrides:
equals
in classAbstractImageWrapper<double[][][]>
- Parameters:
o
- the object to compare with- Returns:
- whether the images are equal or not.
-
hashCode
public int hashCode()
Description copied from class:AbstractImageWrapper
Generated Code- Overrides:
hashCode
in classAbstractImageWrapper<double[][][]>
- Returns:
- hashCode for the object
-
getValues
public double[] getValues(int x, int y)
Description copied from interface:ImageWrapper
Returns all value for a given coordinate- Parameters:
x
- the x-coordinate of the pixely
- the y-coordinate of the pixel- Returns:
- all pixel values at the given position
-
setValues
public void setValues(int x, int y, double[] values)
Description copied from interface:ImageWrapper
Sets values for the given coordinate- Parameters:
x
- the x-coordinate of the pixely
- the y-coordinate of the pixelvalues
- values for the given coordinate
-
-