|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.image.ImageBase
net.grelf.image.Image8or16Base
net.grelf.image.Image8
public class Image8
For holding and processing images having 8 bits (integer) per pixel per channel, either 1 or 3 channels. Wraps a java.awt.image.BufferedImage.
| Field Summary |
|---|
| Fields inherited from class net.grelf.image.Image8or16Base |
|---|
bim, zeroPxDouble, zeroPxInt |
| Fields inherited from class net.grelf.image.ImageBase |
|---|
metadata |
| Constructor Summary | |
|---|---|
Image8(java.awt.image.BufferedImage bim)
Use the BufferedImage to set the width, height and number of bands (channels) in this Image. |
|
Image8(int width,
int height,
int nBands)
Creates image without setting any pixels. |
|
Image8(int width,
int height,
int nBands,
boolean fillWithZeroes,
boolean compatibleWithDisplay)
Creates image with pixels optionally set to zero. |
|
| Method Summary | |
|---|---|
void |
add(Image other)
Add pixel values from the other Image into the current data array. |
Image |
clone()
Returns a new Image8 object with the same data. |
Image16 |
convertToImage16()
|
Image32 |
convertToImage32()
|
Image64 |
convertToImage64()
|
Image8 |
convertToImage8()
Simply returns this (not a clone). |
static java.awt.GraphicsConfiguration |
getGraphicsConfiguration()
Get a reference to the GraphicsConfiguration object, which is the default one for the display system. |
Image |
gnomonicProjection(int focalLength_mm,
double detectorWidth_mm,
double detectorHeight_mm)
Project from sphere to plane. |
Image |
inverseGnomonicProjection(int focalLength_mm,
double detectorWidth_mm,
double detectorHeight_mm)
Project from plane to sphere. |
boolean |
isRaw()
Whether the image data are still in RAW format, as from a DSLR camera. |
Image[] |
splitChannels()
Convert image to an array of monochrome images. |
| Methods inherited from class net.grelf.image.ImageBase |
|---|
createImage, createImage, getCalibration, getFilePath, recombine, sameBitsAndBands, sameSizeBitsAndBands, setCalibration, setFilePath, showInfo |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Image8(int width,
int height,
int nBands)
public Image8(int width,
int height,
int nBands,
boolean fillWithZeroes,
boolean compatibleWithDisplay)
public Image8(java.awt.image.BufferedImage bim)
throws IncompatibleImageException
IncompatibleImageException| Method Detail |
|---|
public static java.awt.GraphicsConfiguration getGraphicsConfiguration()
public void add(Image other)
throws IncompatibleImageException
Image
add in interface ImageIncompatibleImageExceptionpublic Image clone()
clone in interface Imageclone in class Image8or16Basepublic Image8 convertToImage8()
convertToImage8 in interface Imagepublic Image16 convertToImage16()
convertToImage16 in interface Imagepublic Image32 convertToImage32()
convertToImage32 in interface Imagepublic Image64 convertToImage64()
convertToImage64 in interface Image
public Image gnomonicProjection(int focalLength_mm,
double detectorWidth_mm,
double detectorHeight_mm)
Image
gnomonicProjection in interface Image
public Image inverseGnomonicProjection(int focalLength_mm,
double detectorWidth_mm,
double detectorHeight_mm)
Image
inverseGnomonicProjection in interface Imagepublic boolean isRaw()
Image
isRaw in interface Imagepublic Image[] splitChannels()
Image
splitChannels in interface Image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||