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
GoMegaImageProcessor Struct Reference

Specialization of GoImageProcessor to handle mega capture files. More...

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

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

Public Member Functions

 GoMegaImageProcessor ()
 
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 (itk::MegaCaptureReader::Pointer iReader)
 Set the reader. More...
 
virtual void setTimePoint (const unsigned int &iTime)
 update images from the current GoMegaImageStructure More...
 
virtual ~GoMegaImageProcessor ()
 
- 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

itk::MegaCaptureReader::Pointer m_MegaImageReader
 

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 mega capture files.

Definition at line 50 of file GoMegaImageProcessor.h.

Constructor & Destructor Documentation

GoMegaImageProcessor::GoMegaImageProcessor ( )
inline

Definition at line 53 of file GoMegaImageProcessor.h.

virtual GoMegaImageProcessor::~GoMegaImageProcessor ( )
inlinevirtual

Definition at line 54 of file GoMegaImageProcessor.h.

Member Function Documentation

void GoMegaImageProcessor::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 61 of file GoMegaImageProcessor.cxx.

void GoMegaImageProcessor::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 216 of file GoMegaImageProcessor.cxx.

void GoMegaImageProcessor::setReader ( itk::MegaCaptureReader::Pointer  iReader)

Set the reader.

Parameters
[in]iReaderPointer to the reader

Definition at line 42 of file GoMegaImageProcessor.cxx.

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

update images from the current GoMegaImageStructure

Parameters
[in]iTimerequested time point

Implements GoImageProcessor.

Definition at line 155 of file GoMegaImageProcessor.cxx.

Member Data Documentation

itk::MegaCaptureReader::Pointer GoMegaImageProcessor::m_MegaImageReader
private

Definition at line 69 of file GoMegaImageProcessor.h.


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