|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.data.MemoryShortChannelImage
net.sourceforge.jiu.data.MemoryGray16Image
public class MemoryGray16Image
An implementation of Gray16Image
that keeps the complete image in memory.
This class inherits most of its functionality from its parent class
MemoryShortChannelImage
, using one short
channel.
Constructor Summary | |
---|---|
MemoryGray16Image(int width,
int height)
Creates a new MemoryGray16Image object with the specified resolution. |
Method Summary | |
---|---|
PixelImage |
createCompatibleImage(int width,
int height)
Creates an instance of the same class as this one, with width and height given by the arguments. |
Class |
getImageType()
If there is a single interface or class that describes the image data type of this class, the Class object associated with that
interface (or class) is returned (or null otherwise). |
boolean |
isBlack(int x,
int y)
Returns if the pixel specified by the location in the arguments is black. |
boolean |
isWhite(int x,
int y)
Returns if the pixel specified by the location in the arguments is white. |
void |
putBlack(int x,
int y)
Sets a pixel to black (minimum intensity value). |
void |
putWhite(int x,
int y)
Sets a pixel to white (maximum intensity value). |
Methods inherited from class net.sourceforge.jiu.data.MemoryShortChannelImage |
---|
checkPositionAndNumber, clear, clear, clear, clear, createCopy, getAllocatedMemory, getBitsPerPixel, getHeight, getMaxSample, getNumChannels, getSample, getSample, getSamples, getShortSample, getShortSample, getShortSamples, getWidth, putSample, putSample, putSamples, putShortSample, putShortSample, putShortSamples |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.jiu.data.ShortChannelImage |
---|
clear, clear, getShortSample, getShortSample, getShortSamples, putShortSample, putShortSample, putShortSamples |
Methods inherited from interface net.sourceforge.jiu.data.IntegerImage |
---|
clear, clear, getMaxSample, getSample, getSample, getSamples, putSample, putSample, putSamples |
Methods inherited from interface net.sourceforge.jiu.data.PixelImage |
---|
createCopy, getAllocatedMemory, getBitsPerPixel, getHeight, getNumChannels, getWidth |
Constructor Detail |
---|
public MemoryGray16Image(int width, int height)
1
(for one channel) and the two resolution arguments
to the super constructor (of the parent class MemoryShortChannelImage
).
width
- the horizontal resolution, must be larger than zeroheight
- the vertical resolution, must be larger than zeroMethod Detail |
---|
public PixelImage createCompatibleImage(int width, int height)
PixelImage
createCompatibleImage
in interface PixelImage
createCompatibleImage
in class MemoryShortChannelImage
width
- the horizontal resolution of the new imageheight
- the vertical resolution of the new image
public Class getImageType()
PixelImage
Class
object associated with that
interface (or class) is returned (or null
otherwise).
This Class
object, if available for two image objects,
can be used to find out if they are compatible.
Example: MemoryGray8Image
returns
net.sourceforge.jiu.data.Gray8Image.class
.
getImageType
in interface PixelImage
public boolean isBlack(int x, int y)
GrayImage
isBlack
in interface GrayImage
x
- the horizontal location of the pixely
- the vertical location of the pixelpublic boolean isWhite(int x, int y)
GrayImage
isWhite
in interface GrayImage
x
- the horizontal location of the pixely
- the vertical location of the pixelpublic void putBlack(int x, int y)
GrayImage
putBlack
in interface GrayImage
x
- horizontal position of the pixel's locationy
- vertical position of the pixel's locationpublic void putWhite(int x, int y)
GrayImage
putWhite
in interface GrayImage
x
- horizontal position of the pixel's locationy
- vertical position of the pixel's location
|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |