ini.trakem2.imaging
Class ContrastEnhancerWrapper

java.lang.Object
  extended by ini.trakem2.imaging.ContrastEnhancerWrapper

public class ContrastEnhancerWrapper
extends java.lang.Object


Constructor Summary
ContrastEnhancerWrapper()
           
ContrastEnhancerWrapper(Patch reference)
           
 
Method Summary
 boolean apply(java.util.Collection<Displayable> patches_)
           
 boolean applyLayerWise(java.util.Collection<Layer> layers)
           
 void set(double saturated, boolean normalize, boolean equalize, int stats_mode, boolean use_full_stack, boolean from_existing_min_and_max, boolean visible_only)
           
 boolean showDialog()
          Uses the @param reference Patch as the one to extract the reference histogram from.
 void shutdown()
          Waits until all tasks have finished executing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContrastEnhancerWrapper

public ContrastEnhancerWrapper()

ContrastEnhancerWrapper

public ContrastEnhancerWrapper(Patch reference)
Method Detail

set

public void set(double saturated,
                boolean normalize,
                boolean equalize,
                int stats_mode,
                boolean use_full_stack,
                boolean from_existing_min_and_max,
                boolean visible_only)
         throws java.lang.Exception
Parameters:
stats_mode - can be 0==stack histogram, 1==each image's histogram, and 2==reference Patch histogram.
Throws:
java.lang.Exception

showDialog

public boolean showDialog()
Uses the @param reference Patch as the one to extract the reference histogram from. Otherwise will use the stack histogram.

Returns:
false when canceled.

applyLayerWise

public boolean applyLayerWise(java.util.Collection<Layer> layers)

apply

public boolean apply(java.util.Collection<Displayable> patches_)

shutdown

public void shutdown()
Waits until all tasks have finished executing.