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 booleanequals(Object o)UsesGenericImageCompareFunctionto compare if the two image wrappers are equal.Class<double[][][]>getSupportedType()doublegetValue(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 coordinateinthashCode()Generated CodevoidsetValue(int x, int y, int channel, double val)Sets a value for a specific pixel and channelvoidsetValues(int x, int y, double[] values)Sets values for the given coordinatebooleansupportsParallelAccess()-
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:ImageWrapperReturns 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:ImageWrapperSets 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:AbstractImageWrapperUsesGenericImageCompareFunctionto compare if the two image wrappers are equal. If the obj is not a imagewrapper then super.equals will be called.- Overrides:
equalsin 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:AbstractImageWrapperGenerated Code- Overrides:
hashCodein classAbstractImageWrapper<double[][][]>- Returns:
- hashCode for the object
-
getValues
public double[] getValues(int x, int y)Description copied from interface:ImageWrapperReturns 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:ImageWrapperSets values for the given coordinate- Parameters:
x- the x-coordinate of the pixely- the y-coordinate of the pixelvalues- values for the given coordinate
-
-