|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.lovmi.image.AbstractImage
public abstract class AbstractImage
AbstractImage est la base pour implémenter de nouvelles images de type raw. Elle représente, en effet, le dénominateur commun a toutes les images implémentées.
| Field Summary | |
|---|---|
protected int |
height
|
protected int |
loadingState
|
static int |
MAXSIZEOFHISTO
|
protected int |
numberOfChannels
|
protected fr.umlv.lovmi.types.ImageType |
type
|
protected int |
width
|
| Constructor Summary | |
|---|---|
AbstractImage()
|
|
| Method Summary | |
|---|---|
void |
applyFilter(Filter filter)
Applique un filtre sur l'image actuelle |
void |
applyFilter(Filter filter,
int startx,
int starty,
int endx,
int endy)
Applique un filtre sur l'image actuelle sur une zone donnée |
void |
getDisplayableImage(byte[] buffer,
int startx,
int starty,
int endx,
int endy)
Retourne une image affichable de l'image actuelle, dans un buffer alloué par les soins du developpeur Cette image fait 512 x 512 et est codée sur 3 canaux. |
int |
getHeight()
Retourne le nombre de lignes |
int[] |
getHistogram(int channel)
Retourne un histogramme correspondant au canal donné en paramètre |
int[] |
getHistogram(int channel,
int startx,
int starty,
int endx,
int endy)
Retoune l'histogramme sur une zone de l'image |
fr.umlv.lovmi.types.ImageType |
getImageType()
Retourne le type de l'image |
int |
getLoadinState()
Retourne l'état de chargement de l'image |
int |
getNumberOfChannels()
Retourne le nombre de canaux de l'image |
Image |
getResizedImage()
Calcule l'image redimentionnée 512 x 512 de l'image actuelle |
int |
getWidth()
Retourne le nombre de colones |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.umlv.lovmi.image.Image |
|---|
getPixelValue, save, setPixelValue |
| Field Detail |
|---|
protected int height
protected int width
protected int loadingState
public static final int MAXSIZEOFHISTO
protected int numberOfChannels
protected fr.umlv.lovmi.types.ImageType type
| Constructor Detail |
|---|
public AbstractImage()
| Method Detail |
|---|
public int getLoadinState()
public int getHeight()
getHeight in interface Imagepublic int getWidth()
getWidth in interface Imagepublic int getNumberOfChannels()
getNumberOfChannels in interface Imagepublic fr.umlv.lovmi.types.ImageType getImageType()
getImageType in interface Imagepublic int[] getHistogram(int channel)
getHistogram in interface Imagechannel - Canal de l'image dont on veut obtenir l'histogramme
public int[] getHistogram(int channel,
int startx,
int starty,
int endx,
int endy)
getHistogram in interface Imagechannel - Canal de l'image dont on veut obtenir l'histogrammestartx - Coordonnée colonne supérieur droitstarty - Coordonnée ligne supérieur droitendx - Coordonnée colonne inférieur gaucheendy - Coordonnée ligne inférieur droitpublic Image getResizedImage()
getResizedImage in interface Imagepublic void applyFilter(Filter filter)
applyFilter in interface Imagefilter - Fitre à appliquer sur l'image
public void applyFilter(Filter filter,
int startx,
int starty,
int endx,
int endy)
applyFilter in interface Imagefilter - Fitre à appliquer sur l'imagestartx - Coordonnée colonne supérieur droitstarty - Coordonnée ligne supérieur droitendx - Coordonnée colonne inférieur gaucheendy - Coordonnée ligne inférieur droit
public void getDisplayableImage(byte[] buffer,
int startx,
int starty,
int endx,
int endy)
getDisplayableImage in interface Imagebuffer - Buffer alloué par le developpeur, contenant l'image a afficher par Swingstartx - Coordonnée colonne supérieur droitstarty - Coordonnée ligne supérieur droitendx - Coordonnée colonne inférieur gaucheendy - Coordonnée ligne inférieur droit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||