GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
GoLSMImageProcessor Struct Reference

Specialization of GoImageProcessor to handle LSM files. More...

#include <Code/IO/GoImage/GoLSMImageProcessor.h>

Inheritance diagram for GoLSMImageProcessor:
Inheritance graph
[legend]
Collaboration diagram for GoLSMImageProcessor:
Collaboration graph
[legend]

Public Member Functions

 GoLSMImageProcessor ()
 
virtual void initTimePoint (const unsigned int &iTime)
 load all the channels for the given time point into the GoMegaImageStructure More...
 
virtual void setDoppler (const unsigned int &iTime, const unsigned int &iPrevious)
 load all time points of the given channel into the GoMegaImageStructure. Called Doppler View. More...
 
void setReader (vtkLSMReader *iReader)
 Set the reader. More...
 
virtual void setTimePoint (const unsigned int &iTime)
 update images from the current GoMegaImageStructure More...
 
virtual ~GoLSMImageProcessor ()
 
- Public Member Functions inherited from GoImageProcessor
vtkSmartPointer< vtkLookupTable > createLUT (const double &iRed, const double &iGreen, const double &iBlue, const double &iAlpha)
 create a lookuptable (LUT) given r, g, b, a and range LUT will go from black to the color. More...
 
std::map< unsigned int,
unsigned int > 
getAlpha (const std::string &iName) const
 get points to update r, g, b and a TFs in TF editor. More...
 
unsigned int * getBoundsChannel ()
 
unsigned int * getBoundsTime ()
 
std::string getChannelName (const unsigned int &iIndex)
 get name of a channel given its index. More...
 
std::vector< double > getColor (const std::string &iName) const
 get color from channel name. More...
 
std::vector< vtkImageData * > getColoredImages ()
 get all the visible images colored separately (N images). More...
 
unsigned int getDopplerChannel ()
 
bool getDopplerMode ()
 
unsigned int getDopplerSize ()
 
unsigned int getDopplerStep ()
 
std::vector< int > getDopplerTime (unsigned int iTime)
 
int * getExtent ()
 
vtkSmartPointer
< vtkImageAccumulate > 
getHistogram (const std::string &iName) const
 get histogram from 1 channel image More...
 
vtkSmartPointer< vtkImageData > getImageBW (const std::string &iName)
 get raw (not colored) image given index More...
 
vtkSmartPointer< vtkImageData > getImageBW (const unsigned int &iIndex)
 
vtkSmartPointer< vtkImageData > getImageBW ()
 get first raw (not colored) visible image More...
 
template<class PixelType , const unsigned int VImageDimension>
itk::Image< PixelType,
VImageDimension >::Pointer 
getImageITK (std::string iIndex, bool iIsInverted=false)
 get an ITK image (vs vtkImageData) given its index More...
 
vtkSmartPointer< vtkLookupTable > getLookuptable (const std::string &iName) const
 get LUT from channel name. Useful for the Transfer function editor. More...
 
vtkSmartPointer< vtkLookupTable > getLookuptable () const
 get LUT of the first visible channel. Useful is we are in single channel visualization mode. More...
 
std::vector< int > getLUTParameters (const std::string &iName)
 
int getMaxImage ()
 
int getMaxThreshold ()
 
unsigned int getNumberOfChannels ()
 
unsigned int getNumberOfTimePoints ()
 
unsigned int getNumberOfVisibleChannels ()
 get number of visible channels More...
 
vtkSmartPointer
< vtkPiecewiseFunction > 
getOpacityTransferFunction (const std::string &iName) const
 get opacity from channel name. Useful for the transfer function editor while volume rendering. More...
 
std::vector
< vtkPiecewiseFunction * > 
getOpacityTransferFunctions ()
 get vector of visible opacity transfer functions. Useful for the transfer function editor while volume rendering. More...
 
unsigned int getTimeInterval () const
 
vtkSmartPointer< vtkImageData > getVisibleImages ()
 get all the -visible- images present in the containerl. Colors the image and combuine them into 1 image. More...
 
 GoImageProcessor ()
 
 GoImageProcessor (const GoImageProcessor &iE)
 
void setColor (const std::string &iName, std::vector< double > &iColor)
 
void setDopplerMode (const bool &iEnable, const unsigned int &iChannel)
 
void setDopplerSize (int iSize)
 
void setDopplerStep (unsigned int iStep)
 
void setLUTParameters (const std::string &iName, int iGamma, int iMin, int iMax)
 
void updatePoints (std::string iChannel, std::map< unsigned int, unsigned int > iPointsAlpha)
 store points from TF editor More...
 
void visibilityChanged (std::string iName, bool iVisibility)
 change visibility of one channel given its name. More...
 
virtual ~GoImageProcessor ()
 

Private Attributes

vtkLSMReaderm_LSMReader
 

Additional Inherited Members

- Protected Member Functions inherited from GoImageProcessor
vtkSmartPointer< vtkImageData > colorImage (vtkSmartPointer< vtkImageData > iImage, vtkSmartPointer< vtkLookupTable > iLUT)
 
- Protected Attributes inherited from GoImageProcessor
unsigned int m_BoundsChannel [2]
 
unsigned int m_BoundsTime [2]
 
unsigned int m_CurrentTimePoint
 
unsigned int m_DopplerChannel
 
bool m_DopplerMode
 
unsigned int m_DopplerSize
 
unsigned int m_DopplerStep
 
std::vector< int > m_DopplerTime
 
int m_Extent [6]
 
int m_MaxImage
 
int m_MaxThreshold
 
GoMegaImageStructureMultiIndexContainer m_MegaImageContainer
 
vtkSmartPointer< vtkImageData > m_Output
 
unsigned int m_TimeInterval
 

Detailed Description

Specialization of GoImageProcessor to handle LSM files.

Definition at line 52 of file GoLSMImageProcessor.h.

Constructor & Destructor Documentation

GoLSMImageProcessor::GoLSMImageProcessor ( )
inline

Definition at line 55 of file GoLSMImageProcessor.h.

virtual GoLSMImageProcessor::~GoLSMImageProcessor ( )
inlinevirtual

Definition at line 56 of file GoLSMImageProcessor.h.

Member Function Documentation

void GoLSMImageProcessor::initTimePoint ( const unsigned int &  iTime)
virtual

load all the channels for the given time point into the GoMegaImageStructure

Parameters
[in]iTimerequested time point

Implements GoImageProcessor.

Definition at line 64 of file GoLSMImageProcessor.cxx.

void GoLSMImageProcessor::setDoppler ( const unsigned int &  iTime,
const unsigned int &  iPrevious 
)
virtual

load all time points of the given channel into the GoMegaImageStructure. Called Doppler View.

Parameters
[in]iTimerequested central time point
[in]iPrevious-to be used for optimization?
Note
need to store parameters if we want to go through volume efficiently (not reload everything all the time)

Implements GoImageProcessor.

Definition at line 201 of file GoLSMImageProcessor.cxx.

void GoLSMImageProcessor::setReader ( vtkLSMReader iReader)

Set the reader.

Parameters
[in]iReaderPointer to the reader

Definition at line 43 of file GoLSMImageProcessor.cxx.

void GoLSMImageProcessor::setTimePoint ( const unsigned int &  iTime)
virtual

update images from the current GoMegaImageStructure

Parameters
[in]iTimerequested time point

Implements GoImageProcessor.

Definition at line 154 of file GoLSMImageProcessor.cxx.

Member Data Documentation

vtkLSMReader* GoLSMImageProcessor::m_LSMReader
private

Definition at line 72 of file GoLSMImageProcessor.h.


The documentation for this struct was generated from the following files: