public class FitsImage extends VImageOr
Modifier and Type | Class and Description |
---|---|
static class |
FitsImage.ColorFilter
Default color filters.
|
static class |
FitsImage.ScaleMethod
Scale methods (transfer functions).
|
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 |
---|
FitsImage(double x,
double y,
int z,
File imgFile)
Creates a new FitsImage.
|
FitsImage(double x,
double y,
int z,
File imgFile,
double scaleFactor)
Creates a new FitsImage
|
FitsImage(double x,
double y,
int z,
File imgFile,
double scaleFactor,
boolean useDataMinMax)
Creates a new FitsImage.
|
FitsImage(double x,
double y,
int z,
URL imgUrl)
Creates a new FitsImage.
|
FitsImage(double x,
double y,
int z,
URL imgUrl,
double scaleFactor)
Creates a new FitsImage
|
FitsImage(double x,
double y,
int z,
URL imgUrl,
double scaleFactor,
boolean useDataMinMax)
Creates a new FitsImage.
|
FitsImage(double x,
double y,
int z,
URL imgUrl,
double scaleFactor,
double min,
double max) |
Modifier and Type | Method and Description |
---|---|
ImageFilter |
getColorFilter()
Returns the color filter used by this FitsImage
|
int |
getFitsHeight() |
int |
getFitsWidth() |
Grid |
getGrid()
May return null
|
URL |
getImageLocation() |
String |
getObjectName() |
FitsImage.ScaleMethod |
getScaleMethod()
Gets the scale method used by this FitsImage
|
double[] |
getScaleParams()
Returns an array containing {min, max}
|
edu.jhu.pha.sdss.fits.FITSImage |
getUnderlyingImage()
Gets the IVOA Fits image object that underlies this image.
|
Point2D.Double |
pix2wcs(double x,
double y)
Converts pixel coordinates to World Coordinates.
|
void |
rescale(double min,
double max,
double sigma)
Rescales the image.
|
void |
setColorFilter(FitsImage.ColorFilter filter)
Preset defaults version.
|
void |
setColorFilter(ImageFilter filter)
Flexible version.
|
void |
setGrid(Grid grid) |
void |
setScaleMethod(FitsImage.ScaleMethod scaleMethod)
Sets the image scale method.
|
Point2D.Double |
wcs2pix(double ra,
double dec)
Converts World Coordinates to pixel coordinates.
|
void |
zRescale()
Linear transfer function, bounds are obtained through
ZScale
|
void |
zRescale(Sampler sampler) |
clone, coordInside, coordInsideP, coordInsideV, draw, drawForLens, move, moveTo, orientTo, project, projectForLens, reSize, setHeight, setImage, setScale, setWidth, sizeTo, visibleInDisc, visibleInRegion
addCamera, fillsView, getBounds, getHeight, getImage, getInterpolationMethod, getJava2DShape, getOrient, getScale, getSize, getWidth, initCams, isZoomSensitive, removeCamera, setInterpolationMethod, setZoomSensitive
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, propagateMove, select, setColor, setCursorInsideHighlightColor, setDefaultCursorInsideHighlightColor, setHSVColor, setOwner, setSensitivity, setStroke, setTranslucencyValue, setType, setVisible, setZindex, stick, stickToGlyph, toString, unstick, unstickAllGlyphs, unstickAllGlyphs, unstickFromGlyph, visibleInViewport
public FitsImage(double x, double y, int z, URL imgUrl, double scaleFactor, double min, double max) throws IOException
IOException
public FitsImage(double x, double y, int z, URL imgUrl, double scaleFactor, boolean useDataMinMax) throws IOException
x
- x coordinatey
- y coordinatez
- z-indeximgUrl
- image locationscaleFactor
- scale factoruseDataMinMax
- use the FITS header items DATAMIN and DATAMAX to
scale images (will produce a blank image if undefined).IOException
public FitsImage(double x, double y, int z, File imgFile, double scaleFactor, boolean useDataMinMax) throws IOException
x
- x coordinatey
- y coordinatez
- z-indeximgFile
- image locationscaleFactor
- scale factoruseDataMinMax
- use the FITS header items DATAMIN and DATAMAX to
scale images (will produce a blank image if undefined).IOException
public FitsImage(double x, double y, int z, URL imgUrl, double scaleFactor) throws IOException
IOException
public FitsImage(double x, double y, int z, File imgFile, double scaleFactor) throws IOException
IOException
public FitsImage(double x, double y, int z, URL imgUrl) throws IOException
x
- x coordinatey
- y coordinatez
- z-indeximgUrl
- image locationIOException
public FitsImage(double x, double y, int z, File imgFile) throws IOException
x
- x coordinatey
- y coordinatez
- z-indeximgFile
- image locationIOException
public String getObjectName()
public void setScaleMethod(FitsImage.ScaleMethod scaleMethod)
scaleMethod
- the new scale method.public FitsImage.ScaleMethod getScaleMethod()
public double[] getScaleParams()
public URL getImageLocation()
public edu.jhu.pha.sdss.fits.FITSImage getUnderlyingImage()
public void setColorFilter(ImageFilter filter)
public void rescale(double min, double max, double sigma)
min
- minimum value - image values below the minimum will be shown
in black.max
- maximum value - image values above the maximum will be
saturated.public void zRescale()
public void zRescale(Sampler sampler)
public void setColorFilter(FitsImage.ColorFilter filter)
public ImageFilter getColorFilter()
public Point2D.Double pix2wcs(double x, double y)
x
- x-coordinates, in the FITS system: (0,0) lower left, x axis increases to the right, y axis increases upwardsy
- y-coordinates, in the FITS system: (0,0) lower left, x axis increases to the right, y axis increases upwardspublic Point2D.Double wcs2pix(double ra, double dec)
public void setGrid(Grid grid)
public Grid getGrid()
public int getFitsHeight()
public int getFitsWidth()
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.