jpl.mipl.mars.viewer.image
Class BandCombineUtil
java.lang.Object
jpl.mipl.mars.viewer.image.BandCombineUtil
public class BandCombineUtil
- extends Object
Purpose:
Utility class that assists with band selection using the
"BandCombine" JAI operator.
The operator expects a parameter matrix to combine
values from different bands, using the matrix values
of weights per band. There is an extra dimension to
the matrix for a constant factor.
double[][] matrix = new double[destBands][sourceBands + 1]
This class will construct a matrix for a single-banded
destination, giving full weight to a particular source
band and zeroing out all others.
Copyright 2008, California Institute of Technology
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged. 2008.
============================================================================
Modification History:
----------------------
Date Who What
----------------------------------------------------------------------------
03/07/2008 Nick Initial Release
============================================================================
- Version:
- $Id: BandCombineUtil.java,v 1.2 2008/03/21 22:32:10 ntt Exp $
- Author:
- Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BandCombineUtil
public BandCombineUtil()
createBandSelectMatrixFrom3
public static double[][] createBandSelectMatrixFrom3(int bandToSelect)
createBandSelectMatrix
public static double[][] createBandSelectMatrix(int bandToSelect,
int sourceBandCount)
- Creates a matrix built specifically to select a particular
band from the source image.
- Parameters:
bandToSelect - The band from the source that will be
selected.sourceBandCount - Number of bands in the source image
- Returns:
- Matrix to be used by the BandCombine op
useBandCombineOpForSelection
public static boolean useBandCombineOpForSelection()