adams.data.imagej.flattener
Class Pixels

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.data.image.AbstractImageFlattener<ImagePlusContainer>
              extended by adams.data.imagej.flattener.AbstractImageJFlattener
                  extended by adams.data.imagej.flattener.Pixels
All Implemented Interfaces:
CleanUpHandler, Debuggable, Destroyable, OptionHandler, SizeOfHandler, Serializable, Comparable

public class Pixels
extends AbstractImageJFlattener

Gets all the pixels of the image.

Valid options are:

-D <int> (property: debugLevel)
    The greater the number the more additional info the scheme may output to 
    the console (0 = off).
    default: 0
    minimum: 0
 
-field <adams.data.report.Field> [-field ...] (property: fields)
    The fields to add to the output.
    default: 
 
-notes <adams.core.base.BaseString> [-notes ...] (property: notes)
    The notes to add as attributes to the generated data, eg 'PROCESS INFORMATION'
    .
    default: 
 

Version:
$Revision: 4779 $
Author:
fracpete (fracpete at waikato dot ac dot nz), Dale (dale at cs dot waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class adams.data.image.AbstractImageFlattener
m_Fields, m_Header, m_Notes
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
Pixels()
           
 
Method Summary
 Instances createHeader(ImagePlusContainer img)
          Creates the header from a template image.
 Instance[] doFlatten(ImagePlusContainer img)
          Performs the actual flattening of the image.
 String globalInfo()
          Returns a string describing the object.
 
Methods inherited from class adams.data.imagej.flattener.AbstractImageJFlattener
forCommandLine, forName, getFlatteners
 
Methods inherited from class adams.data.image.AbstractImageFlattener
checkImage, cleanUp, compareTo, defineOptions, destroy, equals, fieldsTipText, flatten, getFields, getNotes, newArray, notesTipText, postProcessHeader, postProcessInstance, reset, setFields, setNotes, shallowCopy, shallowCopy
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pixels

public Pixels()
Method Detail

globalInfo

public String globalInfo()
Returns a string describing the object.

Specified by:
globalInfo in class AbstractOptionHandler
Returns:
a description suitable for displaying in the gui

createHeader

public Instances createHeader(ImagePlusContainer img)
Creates the header from a template image.

Specified by:
createHeader in class AbstractImageFlattener<ImagePlusContainer>
Parameters:
img - the image to act as a template
Returns:
the generated header

doFlatten

public Instance[] doFlatten(ImagePlusContainer img)
Performs the actual flattening of the image.

Specified by:
doFlatten in class AbstractImageFlattener<ImagePlusContainer>
Parameters:
img - the image to process
Returns:
the generated array
See Also:
AbstractImageFlattener.m_Header


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.