|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.aladin.Fits
public class Fits
Classe de manipulation d'un fichier image FITS
Field Summary | |
---|---|
int |
bitpix
|
double |
bscale
|
double |
bzero
|
Coord |
center
|
double |
deMax
|
double |
deMin
|
HeaderFits |
headerFits
|
int |
height
|
byte[] |
pix8
|
byte[] |
pixels
|
double |
raMax
|
double |
raMin
|
int |
width
|
Constructor Summary | |
---|---|
Fits()
Création en vue d'une lecture |
|
Fits(int width,
int height,
int bitpix)
Création en vue d'une construction "manuelle" |
Method Summary | |
---|---|
void |
autocut()
Effectue un autocut linéaire des pixels "fullbits" et une conversion en 8bits dans le tableau pix8 []. |
void |
autocutIRIS100()
|
void |
autocutIRIS12()
|
void |
autocutLog()
Effectue un autocut logarithmique des pixels "fullbits" et une conversion en 8bits dans le tableau pix8 []. |
void |
autocutPOSS()
|
void |
autocutWENSS()
|
void |
cutOut(double min,
double max)
Ecrase le tableau des pixels (pixels) sur 256 niveaux en fonction de l'intervalle des valeurs des pixels originaux [min..max] |
void |
cutOutLog(double min,
double max)
Ecrase le tableau des pixels (pixels) sur 256 niveaux en fonction de l'intervalle des valeurs des pixels originaux [min..max] suivant une fonction logarithme |
double[] |
findAutocutRange()
Détermine l'intervalle pour un autocut "à la Aladin". |
double[] |
findAutocutRange(double min,
double max)
Détermine l'intervalle pour un autocut "à la Aladin" en ne considérant que les valeurs comprises entre min et max |
void |
free()
Pour aider le GC |
Calib |
getCalib()
Retourne la calib ou null |
int |
getPix8(int x,
int y)
Retourne la valeur du pixel 8 bits en (x,y) (y compté à partir du bas) exprimé en byte => destiné à être sauvegardé en JPEG |
double |
getPixelDouble(int x,
int y)
Retourne la valeur du pixel en (x,y) (y compté à partir du bas) sous forme d'un double |
double |
getPixelFull(int x,
int y)
Retourne la valeur physique (bscale*pix+bzero) du pixel en (x,y) (y compté à partir du bas) sous forme d'un double |
int |
getPixelInt(int x,
int y)
Retourne la valeur du pixel en (x,y) (y compté à partir du bas) sous forme d'un entier |
static int |
hpx2xy(int hpxOffset)
Retourne l'indice XY en fonction d'un indice Healpix => nécessité d'initialiser au préalable avec createHealpixOrdre(int) |
void |
initPix8()
Remplit le tableau des pixels 8 bits (pix8) à partir des pixels fullbits (uniquement si bitpix==8) avec inversion des lignes |
void |
initPixFits()
Remplit le tableau des pixels Fits (pixels) à partir des pixels 8bits (uniquement si bitpix==8) avec inversion des lignes |
void |
loadFITS(MyInputStream dis)
Chargement d'une image FITS |
void |
loadFITS(java.lang.String filename)
Chargement d'une image FITS depuis un fichier |
void |
loadHeaderFITS(java.lang.String filename)
Chargement de l'entete d'une image FITS depuis un fichier |
void |
loadJpeg(java.lang.String filename)
Chargement d'une image Jpeg depuis un fichier |
void |
setCalib(Calib c)
Positionnement d'une calibration => initialisation de la coordonnée centrale de l'image (cf center) |
void |
setHeaderFrom(double center_ra,
double center_dec,
double incA)
|
void |
setPix8(int x,
int y,
int val)
Positionne la valeur du pixel 8 bits en (x,y) (y compté à partir du bas) exprimé en byte => destiné à être sauvegardé en JPEG |
void |
setPixelDouble(int x,
int y,
double val)
Positionne la valeur du pixel en (x,y) (y compté à partir du bas) exprimé en double |
void |
setPixelInt(int x,
int y,
int val)
Positionne la valeur du pixel en (x,y) (y compté à partir du bas) exprimé en entier |
void |
toBestPix()
Autocut intelligent qui applique soit une transformation linéaire ou logarithmique des niveaux de gris |
void |
toBestPix(double skyval)
Autocut intelligent qui applique soit une transformation linéaire ou logarithmique des niveaux de gris |
void |
toBestPix(double min,
double max)
Autocut intelligent qui applique soit une transformation linéaire ou logarithmique des niveaux de gris |
void |
toPix8()
Remplit le tableau des pixels 8 bits (pix8) |
void |
toPix8(double min,
double max)
Remplit le tableau des pixels 8 bits (pix8) en fonction de l'intervalle des valeurs des pixels originaux [min..max] linéairement |
void |
toPix8Log(double min,
double max)
Remplit le tableau des pixels 8 bits (pix8) en fonction de l'intervalle des valeurs des pixels originaux [min..max] suivant une fonction logarithme |
java.lang.String |
toString()
|
void |
writeFITS(java.io.OutputStream os)
Génération d'un fichier FITS (sans calibration) |
void |
writeFITS(java.lang.String filename)
Génération d'un fichier FITS (sans calibration) |
void |
writeFITS8(java.io.OutputStream os)
Génération d'un fichier FITS (sans calibration) |
void |
writeFITS8(java.lang.String filename)
Génération d'un fichier FITS (sans calibration) |
void |
writeJPEG(java.io.OutputStream os)
|
void |
writeJPEG(java.lang.String filename)
Génération d'un fichier JPEG à partir des pixels 8bits Ceux-ci doivent être positionnés manuellement via la méthode setPix8(x,y,val) |
static int |
xy2hpx(int xyOffset)
Retourne l'indice Healpix en fonction d'un indice XY => nécessité d'initialiser au préalable avec createHealpixOrdre(int) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public HeaderFits headerFits
public byte[] pixels
public int bitpix
public int width
public int height
public double bzero
public double bscale
public Coord center
public byte[] pix8
public double raMin
public double raMax
public double deMin
public double deMax
Constructor Detail |
---|
public Fits()
public Fits(int width, int height, int bitpix)
width
- Largeurheight
- Hauteurbitpix
- Profondeur des pixels (codage FITS 8,16,32,-32,-64)Method Detail |
---|
public void setCalib(Calib c)
public Calib getCalib()
public void loadJpeg(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void loadFITS(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void loadFITS(MyInputStream dis) throws java.lang.Exception
java.lang.Exception
public void loadHeaderFITS(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void setHeaderFrom(double center_ra, double center_dec, double incA)
public void writeFITS8(java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception
public void writeFITS8(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void writeFITS(java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception
public void writeFITS(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void writeJPEG(java.lang.String filename) throws java.lang.Exception
java.lang.Exception
public void writeJPEG(java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception
public double getPixelFull(int x, int y)
public double getPixelDouble(int x, int y)
public int getPixelInt(int x, int y)
public void setPixelDouble(int x, int y, double val)
public void setPixelInt(int x, int y, int val)
public void setPix8(int x, int y, int val)
public int getPix8(int x, int y)
public void autocutLog() throws java.lang.Exception
java.lang.Exception
public void autocutIRIS12() throws java.lang.Exception
java.lang.Exception
public void autocutIRIS100() throws java.lang.Exception
java.lang.Exception
public void autocutPOSS() throws java.lang.Exception
java.lang.Exception
public void autocutWENSS() throws java.lang.Exception
java.lang.Exception
public void toPix8Log(double min, double max)
public void autocut() throws java.lang.Exception
java.lang.Exception
public void cutOut(double min, double max)
public void cutOutLog(double min, double max)
public void toPix8()
public void toPix8(double min, double max)
public void initPix8() throws java.lang.Exception
java.lang.Exception
public void initPixFits() throws java.lang.Exception
java.lang.Exception
public double[] findAutocutRange() throws java.lang.Exception
java.lang.Exception
public double[] findAutocutRange(double min, double max) throws java.lang.Exception
java.lang.Exception
public void toBestPix(double skyval)
pixels
- est utilisé, pix8 est fabriquépublic void toBestPix()
pixels
- est utilisé, pix8 est fabriquépublic void toBestPix(double min, double max)
pixels
- est utilisé, pix8 est fabriquépublic static final int hpx2xy(int hpxOffset)
public static final int xy2hpx(int xyOffset)
public void free()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |