Package skyview.survey
Class ProxyImage
java.lang.Object
skyview.survey.Image
skyview.survey.ProxyImage
- All Implemented Interfaces:
Serializable
,Component
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionProxyImage
(String spell, WCS wcs, int width, int height, int depth) Construct a WCS -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the data arrayGet the current 'real' image.double[]
getCenter
(int npix) Get the center position of the given output pixeldouble[][]
getCorners
(int npix) Get the corners of the given output pixeldouble
getData
(long npix) Get a pixels data associated with the image.double[]
Get the data as an arrayint
getDepth()
Get the number of planes in the imageint
Get the height of the imagegetName()
Get the name of the imagegetSpell()
Get the spell associated with the proxyGet the transformation to the pixel coordinates of the imagegetWCS()
Get the WCS associated with the image.int
getWidth()
Get the width of the imagevoid
setData
(long npix, double newData) Set the Data associated with the image.void
setDataArray
(double[] newData) Set the data arrayvoid
setFactory
(ImageFactory imFac) Set the factory that is used to create the real imagesprotected void
set the name of the imageboolean
valid()
Is this currently a fully validated image?void
validate()
Make sure the image is read for detailed use.Methods inherited from class skyview.survey.Image
getDescription, initialize, isTiled, setAccumulate
-
Constructor Details
-
ProxyImage
public ProxyImage(String spell, WCS wcs, int width, int height, int depth) throws TransformationException Construct a WCS- Throws:
TransformationException
-
-
Method Details
-
getName
Get the name of the image -
setName
set the name of the image -
setFactory
Set the factory that is used to create the real images -
getWCS
Get the WCS associated with the image. -
getData
public double getData(long npix) Get a pixels data associated with the image. -
getDataArray
public double[] getDataArray()Get the data as an array- Overrides:
getDataArray
in classImage
-
setData
public void setData(long npix, double newData) Set the Data associated with the image. -
clearData
public void clearData()Clear the data array -
setDataArray
public void setDataArray(double[] newData) Set the data array- Overrides:
setDataArray
in classImage
-
getTransformer
Get the transformation to the pixel coordinates of the image- Overrides:
getTransformer
in classImage
-
getWidth
public int getWidth()Get the width of the image -
getHeight
public int getHeight()Get the height of the image -
getDepth
public int getDepth()Get the number of planes in the image -
getCenter
public double[] getCenter(int npix) Get the center position of the given output pixel -
getCorners
public double[][] getCorners(int npix) Get the corners of the given output pixel- Overrides:
getCorners
in classImage
-
validate
public void validate()Make sure the image is read for detailed use. Replace the proxy with the real image -
valid
public boolean valid()Is this currently a fully validated image? -
getBaseImage
Get the current 'real' image.- Overrides:
getBaseImage
in classImage
-
getSpell
Get the spell associated with the proxy
-