public class Image8 extends Image8or16Base implements Image, java.lang.Cloneable, java.io.Serializable
bim, zeroPxDouble, zeroPxInt
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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).
|
int |
getBytesPerChannel()
Always returns 1 for this kind of image.
|
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.
|
add, addPixel, addProportion, addTranslated, addTranslated, autoCrop, autoStretch, autoStretch, autoThreshold, averageVertically, averageVertically, blurGaussian, checkCompatibility, convertToMonochrome, convertToMonochrome, convolve, convolve, correctBackground, crop, deconvolve, dispose, divide, divideByFlatField, drawRim, fit, flipHorizontal, flipVertical, getBitsPerChannel, getBitsPerChannel, getBufferedImage, getChannelRanges, getChannelRangesDouble, getHeight, getImageTypeAsString, getImageTypeAsString, getMaxLevel, getMaxLevel, getMetadata, getNBands, getNBands, getPixel, getPixelDouble, getPixelDoubleInterpolated, getPixelInterpolated, getRange, getRangeByRescanning, getRangeByRescanningDouble, getRangeDouble, getWidth, gnomonicProjection, inverseGnomonicProjection, invert, keepOnlyDifferingPixels, meanFilter, medianFilter, multiply, multiply, multiply, nearestExtremeFilter, neutraliseBackground, rankFilter, reapplyColour, replaceBrighterPixels, rotate, save, save, save, saveAsFITS, scale, scale, scaleDownForDisplay, set, setBufferedImage, setMetadata, setPixel, setPixel, setPixelDouble, setPixelDouble, setRange, showInfo, splitIntensity, subtract, subtractToZero, threshold, toFoldedString, translate, translate, varianceFilter
applyCurve, compareTo, createImage, createImage, getCalibration, getEv, getFilePath, pixelBrighter, pixelBrighter, pixelsDiffer, pixelsDiffer, plotResponseCurve, recombine, rotate, rotate180, rotate270, rotate90, sameBitsAndBands, sameSizeBitsAndBands, saturate, setCalibration, setEv, setFilePath, showInfo, swapQuadrants
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addPixel, addProportion, addTranslated, addTranslated, applyCurve, autoCrop, autoStretch, autoStretch, autoThreshold, averageVertically, averageVertically, blurGaussian, convertToMonochrome, convertToMonochrome, convolve, convolve, correctBackground, crop, deconvolve, dispose, divide, divideByFlatField, drawRim, fit, flipHorizontal, flipVertical, getBitsPerChannel, getCalibration, getChannelRanges, getChannelRangesDouble, getEv, getFilePath, getHeight, getImageTypeAsString, getMaxLevel, getMetadata, getNBands, getPixel, getPixelDouble, getPixelDoubleInterpolated, getPixelInterpolated, getRange, getRangeByRescanning, getRangeByRescanningDouble, getRangeDouble, getWidth, invert, keepOnlyDifferingPixels, meanFilter, medianFilter, multiply, multiply, multiply, nearestExtremeFilter, neutraliseBackground, plotResponseCurve, rankFilter, reapplyColour, replaceBrighterPixels, rotate, rotate, rotate180, rotate270, rotate90, saturate, save, save, save, saveAsFITS, scale, scale, scaleDownForDisplay, set, setCalibration, setEv, setFilePath, setMetadata, setPixel, setPixel, setPixelDouble, setPixelDouble, showInfo, splitIntensity, subtract, subtractToZero, swapQuadrants, threshold, toFoldedString, toString, translate, translate, varianceFilter
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
public static java.awt.GraphicsConfiguration getGraphicsConfiguration()
public void add(Image other) throws IncompatibleImageException
Image
add
in interface Image
IncompatibleImageException
public Image clone()
clone
in interface Image
clone
in class Image8or16Base
public Image8 convertToImage8()
convertToImage8
in interface Image
public Image16 convertToImage16()
convertToImage16
in interface Image
public Image32 convertToImage32()
convertToImage32
in interface Image
public Image64 convertToImage64()
convertToImage64
in interface Image
public int getBytesPerChannel()
getBytesPerChannel
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 Image
public boolean isRaw()
Image
public Image[] splitChannels()
Image
splitChannels
in interface Image