public class JSkyFitsImage extends VImage
Modifier and Type | Class and Description |
---|---|
static class |
JSkyFitsImage.ScaleAlgorithm |
ar, at, image, interpolationMethod, pc, scaleFactor, trueCoef, vh, vw, zoomSensitive
bColor, borderColor, cursorInsideFColor, HSVb
alphaC, coef, color, cursorInsideColor, ENTERED_GLYPH, EXITED_GLYPH, fColor, HSV, NO_CURSOR_EVENT, orient, sensit, size, stickedTo, stroke, visible, vx, vy, vz
acO
Constructor and Description |
---|
JSkyFitsImage(double x,
double y,
int z,
URL fitsURL)
Construct an image at (x, y) with original scale.
|
JSkyFitsImage(double x,
double y,
int z,
URL fitsURL,
double scale)
Construct an image at (x, y) with a custom scale.
|
JSkyFitsImage(double x,
double y,
int z,
URL fitsURL,
double scale,
float alpha)
Construct an image at (x, y) with a custom scale.
|
JSkyFitsImage(String file)
Construct an image at (0, 0) with original scale.
|
JSkyFitsImage(URL fitsURL)
Construct an image at (0, 0) with original scale.
|
Modifier and Type | Method and Description |
---|---|
void |
autoSetCutLevels(boolean updateDisplay)
Sets the image cut levels automatically using median filtering.
|
void |
autoSetCutLevels(Rectangle2D.Double rect,
boolean updateDisplay)
Sets the image cut levels automatically using median filtering on the given area of the image.
|
String |
getColorLookupTable()
Get the color lookup table currently set for this image.
|
double[] |
getCutLevels()
Returns an array containing [lowCut, highCut]
|
int |
getDataType() |
URL |
getFITSImageURL()
Get URL of underlying FITS Image.
|
javax.media.jai.Histogram |
getHistogram(int numValues) |
double |
getMaxValue()
Get max cut level.
|
double |
getMinValue()
Get min cut level.
|
double[] |
getOriginCutLevels() |
jsky.image.fits.codec.FITSImage |
getRawFITSImage()
Get the underlying JSky FITSImage instance.
|
JSkyFitsImage.ScaleAlgorithm |
getScaleAlgorithm()
Get the scale algorithm used to render this FITS image.
|
Point2D.Double |
pix2wcs(double x,
double y)
Converts from FITS image coordinates to World Coordinates.
|
void |
setColorLookupTable(String tableName,
boolean updateDisplay)
Sets the color lookup table.
|
void |
setCutLevels(double lowCut,
double highCut,
boolean updateDisplay)
Sets the cut levels for this image.
|
void |
setImage(Image i)
Does nothing on purpose.
|
void |
setScaleAlgorithm(JSkyFitsImage.ScaleAlgorithm algorithm,
boolean updateDisplay)
Sets the scale algorithm used to render this FITS image.
|
void |
updateDisplayedImage()
Update the image to be rendered on screen.
|
Point2D.Double |
vs2wcs(double pvx,
double pvy)
Converts from VirtualSpace coordinates to World Coordinates.
|
Point2D.Double |
wcs2pix(double ra,
double dec)
Converts from World Coordinates to FITS image coordinates.
|
Point2D.Double |
wcs2vs(double ra,
double dec)
Converts from World Coordinates to VirtualSpace coordinates.
|
addCamera, clone, coordInside, coordInsideP, coordInsideV, draw, drawForLens, fillsView, getBounds, getHeight, getImage, getInterpolationMethod, getJava2DShape, getOrient, getScale, getSize, getWidth, initCams, isZoomSensitive, orientTo, project, projectForLens, removeCamera, reSize, setHeight, setInterpolationMethod, setScale, setWidth, setZoomSensitive, sizeTo, visibleInDisc, visibleInRegion
addHSVbColor, getBorderColor, getDefaultBorderColor, getHSVbColor, highlight, isBorderDrawn, isFilled, setBorderColor, setCursorInsideFillColor, setDrawBorder, setFilled, setHSVbColor
addHSVColor, containedInRegion, getColor, getDefaultColor, getDefaultCursorInsideHighlightColor, getHSVColor, getLocation, getOwner, getStickedGlyphArray, getStroke, getTranslucencyValue, getType, getZindex, isSelected, isSensitive, isVisible, isVisibleThroughLens, move, moveTo, propagateMove, select, setColor, setCursorInsideHighlightColor, setDefaultCursorInsideHighlightColor, setHSVColor, setOwner, setSensitivity, setStroke, setTranslucencyValue, setType, setVisible, setZindex, stick, stickToGlyph, toString, unstick, unstickAllGlyphs, unstickAllGlyphs, unstickFromGlyph, visibleInViewport
public JSkyFitsImage(String file) throws MalformedURLException
file
- path to FITS fileMalformedURLException
public JSkyFitsImage(URL fitsURL)
fitsURL
- FITS file URLpublic JSkyFitsImage(double x, double y, int z, URL fitsURL)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)fitsURL
- FITS file URLpublic JSkyFitsImage(double x, double y, int z, URL fitsURL, double scale)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)fitsURL
- FITS file URLscale
- scaleFactor w.r.t original image sizepublic JSkyFitsImage(double x, double y, int z, URL fitsURL, double scale, float alpha)
x
- coordinate in virtual spacey
- coordinate in virtual spacez
- z-index (pass 0 if you do not use z-ordering)fitsURL
- FITS file URLscale
- scaleFactor w.r.t original image sizealpha
- in [0;1.0]. 0 is fully transparent, 1 is opaquepublic jsky.image.fits.codec.FITSImage getRawFITSImage()
public URL getFITSImageURL()
public double getMinValue()
public double getMaxValue()
public JSkyFitsImage.ScaleAlgorithm getScaleAlgorithm()
public void setImage(Image i)
public void updateDisplayedImage()
public void setColorLookupTable(String tableName, boolean updateDisplay)
tableName
- Name of color lookup table to be used to render this FITS image. Currently accepted values include: "Standard", "Aips0", "Background", "Color", "Red", "Green", "Blue", "Blulut", "Ramp", "Real", "Heat", "Light", "Pastel", "Smooth", "Idl2", "Idl4", "Idl5", "Idl6", "Idl11", "Idl12", "Idl14", "Idl15", "Isophot", "Manycolor", "Stairs8", "Stairs9", "Random", "Random1", "Random2", "Random3", "Random4", "Rainbow", "Rainbow1", "Rainbow2", "Rainbow3", "Rainbow4".updateDisplay
- true if the ZVTM views observing this image should be repainted at once.public String getColorLookupTable()
public void setScaleAlgorithm(JSkyFitsImage.ScaleAlgorithm algorithm, boolean updateDisplay)
updateDisplay
- true if the ZVTM views observing this image should be repainted at once.public void setCutLevels(double lowCut, double highCut, boolean updateDisplay)
updateDisplay
- true if the ZVTM views observing this image should be repainted at once.public double[] getCutLevels()
public double[] getOriginCutLevels()
public void autoSetCutLevels(Rectangle2D.Double rect, boolean updateDisplay)
updateDisplay
- true if the ZVTM views observing this image should be repainted at once.public void autoSetCutLevels(boolean updateDisplay)
updateDisplay
- true if the ZVTM views observing this image should be repainted at once.public int getDataType()
public javax.media.jai.Histogram getHistogram(int numValues)
public Point2D.Double pix2wcs(double x, double y)
x
- x-coordinate, in the FITS system: (0,0) lower left, x-axis oriented to the right.y
- y-coordinate, in the FITS system: (0,0) lower left, y-axis oriented upward.public Point2D.Double vs2wcs(double pvx, double pvy)
pvx
- x-coord in virtual space.pvy
- y-coord in virtual space.public Point2D.Double wcs2pix(double ra, double dec)
ra
- right ascension (in degrees).dec
- declination (in degrees).public Point2D.Double wcs2vs(double ra, double dec)
ra
- right ascension (in degrees).dec
- declination (in degrees).Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.