public class Image16 extends Image8or16Base implements Image, java.lang.Cloneable, java.io.Serializable
bim, zeroPxDouble, zeroPxInt
Constructor and Description |
---|
Image16(java.awt.image.BufferedImage bim)
Use the BufferedImage to set the width, height and number of bands
(channels) in this Image.
|
Image16(java.awt.image.BufferedImage bim,
boolean raw)
Use the BufferedImage to set the width, height and number of bands
(channels) in this Image.
|
Image16(int width,
int height,
int nBands)
Creates image without setting any pixels.
|
Image16(int width,
int height,
int nBands,
boolean fillWithZeroes)
Creates image with pixels optionally set to zero.
|
Image16(int width,
int height,
int nBands,
boolean fillWithZeroes,
boolean raw)
Creates image with pixels optionally set to zero and optionally flagged
as RAW format (from DSLR).
|
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 Image16 object with the same data.
|
Image16 |
convertToImage16()
Simply returns this (not a clone).
|
Image32 |
convertToImage32()
Returns a new Image32.
|
Image64 |
convertToImage64() |
Image8 |
convertToImage8()
Returns a new Image8.
|
int |
getBytesPerChannel()
Always returns 2 for this kind of image.
|
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()
Some 16-bit images may be RAW format from DSLR.
|
void |
setRaw(boolean raw) |
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, getGraphicsConfiguration, 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 Image16(int width, int height, int nBands)
public Image16(int width, int height, int nBands, boolean fillWithZeroes)
public Image16(int width, int height, int nBands, boolean fillWithZeroes, boolean raw)
public Image16(java.awt.image.BufferedImage bim) throws IncompatibleImageException
IncompatibleImageException
public Image16(java.awt.image.BufferedImage bim, boolean raw) throws IncompatibleImageException
IncompatibleImageException
public boolean isRaw()
public void setRaw(boolean raw)
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 Image[] splitChannels()
Image
splitChannels
in interface Image