edu.washington.biostr.sig.brainj3d.view3D.combiners
Class ANDCombiner
java.lang.Object
edu.washington.biostr.sig.brainj3d.view3D.combiners.AbstractVolumeDataViewCombiner
edu.washington.biostr.sig.brainj3d.view3D.combiners.BinOpCombiner
edu.washington.biostr.sig.brainj3d.view3D.combiners.ANDCombiner
- All Implemented Interfaces:
- VolumeDataViewCombiner
public class ANDCombiner
- extends BinOpCombiner
This Combiner performs an AND-like operation over each of the data sets at each vertex.
If all of the sampled values at a particular vertex yield a relative high value, then
the output color intensity is high. This Combiner requires a ColorLookupTable array
of size one.
- Author:
- Peter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANDCombiner
public ANDCombiner()
getName
public String getName()
- Description copied from interface:
VolumeDataViewCombiner
- Returns the name of this Combiner.
- Returns:
- the name of this Combiner
computeColors
public void computeColors(double[][] valuesArray,
ColorLookupTable[] colorTables,
float[] baseColor,
BlendFunction function,
PreprocessingData prepData,
float[] outColors)
- Description copied from class:
AbstractVolumeDataViewCombiner
- Computes colors given the specified inputs and modified outColors to hold the computed colors.
Subclasses should override this method to implement thier combination schemes.
- Specified by:
computeColors in interface VolumeDataViewCombiner- Overrides:
computeColors in class BinOpCombiner
- Parameters:
valuesArray - should be in the format of [view index][vertex index]colorTables - an array of ColorLookupTables, should be length one if needsManyColorTables() returns false,
or the same length at the number of views in the valuesArray if needsManyColorTables() returns truebaseColor - the base color to be used in the blend functionfunction - the blend function to use to blend the base color with the mapped color from the
ColorLookupTable(s).prepData - the preprocessing data computed across each of the full sampled data setsoutColors - destination of computed colors, should be the same length as computeColorsSize(valuesArray)
Copyright © 2006 University of Washington. All Rights Reserved.