Computes the variance map for a single image.
More...
#include <cbicaITKComputeVarianceMap.h>
|
void | initializeClass (const std::vector< std::string > &inputFileNames, const std::string &output, const std::string &prefix) |
| Checks the input and throws exception if there is an issue. More...
|
|
|
itk::ImageIOBase::IOComponentType | m_componentType |
|
std::string | m_componentType_asString |
|
std::string | m_extension |
|
std::vector< std::string > | m_inputFiles |
|
std::vector< FileNameParts > | m_inputFiles_parts |
|
std::vector< std::string > | m_outputBaseNames |
|
std::string | m_outputDir |
|
std::vector< std::string > | m_outputFiles |
|
itk::ImageIOBase::IOPixelType | m_pixelType |
|
std::string | m_pixelType_asString |
|
std::string | m_prefix |
|
std::string | m_suffix |
|
Computes the variance map for a single image.
- Todo:
- Support for calculating variance for multiple images (groundwork is ready, just need to change the runAlgorithm() function
◆ ComputeVarianceMap() [1/5]
◆ ComputeVarianceMap() [2/5]
Actual Constructor.
ALL scalars are computed.
- Parameters
-
inputFileName | The Input File Name |
output | The output file or directory |
◆ ComputeVarianceMap() [3/5]
ComputeVarianceMap |
( |
const std::vector< std::string > & |
inputFileNames, |
|
|
const std::string & |
output |
|
) |
| |
|
explicit |
Actual Constructor.
ALL scalars are computed.
- Parameters
-
inputFileNames | Vector of input file names |
output | The output file or directory |
◆ ComputeVarianceMap() [4/5]
ComputeVarianceMap |
( |
const std::string & |
inputFileName, |
|
|
const std::string & |
output, |
|
|
const std::string & |
prefix |
|
) |
| |
|
explicit |
Actual Constructor.
- Parameters
-
inputFileName | The Input File Name |
output | The output file or directory |
prefix | Prefix for output. Disregarded if output is file |
◆ ComputeVarianceMap() [5/5]
ComputeVarianceMap |
( |
const std::vector< std::string > & |
inputFileNames, |
|
|
const std::string & |
output, |
|
|
const std::string & |
prefix |
|
) |
| |
|
explicit |
Actual Constructor.
- Parameters
-
inputFileNames | Vector of input file names |
output | The output file or directory |
prefix | Prefix for output. Disregarded if output is file |
◆ initializeClass()
void initializeClass |
( |
const std::vector< std::string > & |
inputFileNames, |
|
|
const std::string & |
output, |
|
|
const std::string & |
prefix |
|
) |
| |
|
inlineprotectedinherited |
Checks the input and throws exception if there is an issue.
This verifies the input image file and throws an exception if there is an issue. For variable (but required) inputs, please use checkInputs() function. If the inherited class doesn't have any required parameter other than the input, then checkInputs() can be left as an empty void function. If the output is empty, then cbica::createTmpDir() is invoked and the resultant directory is shown as output in the command line.
- Parameters
-
inputFileNames | Wrap for m_inputFiles |
output | Can have the output file or directory. If file is specified without path, it is written in temp dir created using cbica::createTmpDir() |
◆ SetParameters()
void SetParameters |
( |
const std::vector< std::string > & |
inputFileNames, |
|
|
const std::string & |
output, |
|
|
const std::string & |
prefix |
|
) |
| |
|
virtual |
Set the object parameters for the default () constructor.
Since this class utilizes only a single image (for multiple images, it can be called in a loop), setting the input as a vector will tell the algorithm to take the first file only.
- Parameters
-
inputFileNames | Vector of input files |
output | Output file/dir |
Reimplemented from CommonHolder.
The documentation for this class was generated from the following file: