org.cresques.io.raster
Class ComputeMinMaxFilter

java.lang.Object
  extended byorg.cresques.io.raster.RasterFilter
      extended byorg.cresques.io.raster.ComputeMinMaxFilter
All Implemented Interfaces:
IRasterFilter
Direct Known Subclasses:
ComputeMinMaxImageFilter, ComputeMinMaxShortFilter

public abstract class ComputeMinMaxFilter
extends RasterFilter

Calcula el máximo y el mínimo de un raster, Así como el segundo menor valor y el segundo mayor valor.

Author:
Luis W. Sevilla (sevilla_lui@gva.es), Nacho Brodin (brodin_ign@gva.es)

Field Summary
protected  int[] max
           
protected  int[] min
           
protected  int[] secondMax
           
protected  int[] secondMin
           
protected  int[] tmpMax
           
protected  int[] tmpMin
           
 
Fields inherited from class org.cresques.io.raster.RasterFilter
exec, height, image, incX, incY, params, px, raster, stats, width
 
Constructor Summary
ComputeMinMaxFilter()
          Constructor
 
Method Summary
 int getMax(int bandNr)
          Obtiene el máximo para una banda dada
 int getMin(int bandNr)
          Obtiene le mínimo para una banda dada
 java.lang.Object getResult(java.lang.String name)
          Obtiene el objeto stats con el calculo de máximos y mínimos
 void post()
          Operaciones que se realizan después de la ejecución del filtro
 void pre()
          Operaciones que se realizan antes de la ejecución del filtro
 
Methods inherited from class org.cresques.io.raster.RasterFilter
addParam, execute, executeLines, getInRasterDataType, getOutRasterDataType, process, processLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

protected int[] min

max

protected int[] max

secondMin

protected int[] secondMin

secondMax

protected int[] secondMax

tmpMin

protected int[] tmpMin

tmpMax

protected int[] tmpMax
Constructor Detail

ComputeMinMaxFilter

public ComputeMinMaxFilter()
Constructor

Method Detail

pre

public void pre()
Operaciones que se realizan antes de la ejecución del filtro

Specified by:
pre in interface IRasterFilter
Specified by:
pre in class RasterFilter

post

public void post()
Operaciones que se realizan después de la ejecución del filtro

Specified by:
post in interface IRasterFilter
Specified by:
post in class RasterFilter

getMin

public int getMin(int bandNr)
Obtiene le mínimo para una banda dada

Parameters:
bandNr - banda
Returns:
valor mínimo

getMax

public int getMax(int bandNr)
Obtiene el máximo para una banda dada

Parameters:
bandNr - banda
Returns:
valor máximo

getResult

public java.lang.Object getResult(java.lang.String name)
Obtiene el objeto stats con el calculo de máximos y mínimos

Specified by:
getResult in interface IRasterFilter
Specified by:
getResult in class RasterFilter
Parameters:
name - clave para obtener un objeto resultado del filtro.