|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brownsoft.image.PGMDecoder
Title: Proyecto Codificacion de Imagenes y Video
Description:
Copyright: Copyright (c) 2004
Company:
Field Summary | |
protected int |
BandCount
|
private int[] |
buffer
|
protected int |
ColorType
|
protected java.lang.String |
filename
|
protected java.lang.String |
HeaderId
|
private int |
height
|
protected java.lang.String |
ImageType
|
private java.io.DataInputStream |
inputStream
|
private double[][] |
matrix
|
private int |
width
|
Constructor Summary | |
PGMDecoder(java.io.InputStream stream)
|
|
PGMDecoder(java.io.InputStream stream,
java.lang.String ImageType,
java.lang.String HeaderId,
int BandCount,
int ColorType)
|
|
PGMDecoder(java.lang.String filename)
|
Method Summary | |
java.awt.Image |
getImage()
|
private java.lang.String |
getLine()
Obtiene una linea de texto de la imagen, obviando los comentarios |
double[][] |
getMatrix()
Decodifica la imagen y retorna una matrix con los datos |
int[] |
getVector()
|
static void |
main(java.lang.String[] args)
|
void |
showImage()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int BandCount
private int[] buffer
protected int ColorType
protected java.lang.String filename
protected java.lang.String HeaderId
private int height
protected java.lang.String ImageType
private java.io.DataInputStream inputStream
private double[][] matrix
private int width
Constructor Detail |
public PGMDecoder(java.io.InputStream stream) throws java.io.IOException
public PGMDecoder(java.io.InputStream stream, java.lang.String ImageType, java.lang.String HeaderId, int BandCount, int ColorType) throws java.io.IOException
public PGMDecoder(java.lang.String filename) throws java.io.IOException
Method Detail |
public java.awt.Image getImage() throws java.io.IOException
java.io.IOException
private java.lang.String getLine() throws java.io.IOException
java.io.IOException
public double[][] getMatrix()
public int[] getVector() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
public void showImage()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |