Classes | Namespaces | Defines | Typedefs | Enumerations | Functions | Variables

cmtkTypes.h File Reference

Go to the source code of this file.

Classes

class  cmtk::Types::Range< T >
 Range of DataItem values specified as lower and upper bound. More...
class  cmtk::Types::Combined< T1, T2 >
 Template for traits class to combine two different real (floating point) data types. More...
class  cmtk::Types::Combined< float, float >
 Combination of two single-precision floating point values. More...
class  cmtk::Types::Combined< float, double >
 Combination of single- and double-precision floating point values. More...
class  cmtk::Types::Combined< double, float >
 Combination of double- and single-precision floating point values. More...
class  cmtk::Types::Combined< double, double >
 Combination of two double-precision floating point values. More...

Namespaces

namespace  cmtk
namespace  cmtk::Types
 

Define float type used for coordinates.


Defines

#define NULL   0
#define _HAVE_BYTE_
#define CMTK_ITEM_MAX   DBL_MAX
#define CMTK_ITEM_MIN   DBL_MIN
#define CMTK_ITEM_NAN   CMTK_DOUBLE_NAN

Typedefs

typedef unsigned char byte
typedef double cmtk::Types::DataItem
typedef Range< DataItem > cmtk::Types::DataItemRange
 Convenience declaration: range of DataItem values.
typedef double cmtk::Types::Coordinate

Enumerations

enum  { cmtk::AXIS_X = 0, cmtk::AXIS_Y = 1, cmtk::AXIS_Z = 2 }
 

Identifiers for coordinate axes.

More...
enum  cmtk::DataClass { cmtk::DATACLASS_GREY, cmtk::DATACLASS_LABEL, cmtk::DATACLASS_UNKNOWN }
 

Class of image data.

More...
enum  cmtk::ScalarDataType {
  cmtk::TYPE_BYTE = 0, cmtk::TYPE_CHAR = 1, cmtk::TYPE_SHORT = 2, cmtk::TYPE_USHORT = 3,
  cmtk::TYPE_INT = 4, cmtk::TYPE_UINT = 5, cmtk::TYPE_FLOAT = 6, cmtk::TYPE_DOUBLE = 7,
  cmtk::TYPE_NONE = -1
}
 

Scalar data type identifiers.

More...

Functions

DataClass cmtk::StringToDataClass (const char *dataClassStr)
 Convert string to data class identifier.
const char * cmtk::DataClassToString (const DataClass dataClass)
 Convert data class identifier to string.
size_t cmtk::TypeItemSize (const ScalarDataType dtype)
 Return item size for given scalar data type.
ScalarDataType cmtk::SelectDataTypeInteger (const byte itemSize, const bool signBit)
 Select integer data type based on item size and sign bit.
ScalarDataType cmtk::GetSignedDataType (const ScalarDataType dtype)
 Return signed datatype ID corresponding to given datatype.
ScalarDataType cmtk::GetDifferenceDataType (const ScalarDataType dtype1, const ScalarDataType dtype2)
 Return difference datatype ID for given pair of datatypes.
ScalarDataType cmtk::GetUnsignedDataType (const ScalarDataType dtype)
 Return unsigned datatype ID corresponding to given datatype.

Variables

const ScalarDataType cmtk::TYPE_ITEM = TYPE_DOUBLE
const ScalarDataType cmtk::TYPE_COORDINATE = TYPE_DOUBLE

Define Documentation

#define _HAVE_BYTE_

Definition at line 59 of file cmtkTypes.h.

#define NULL   0

Definition at line 54 of file cmtkTypes.h.

Referenced by cmtk::CommandLine::AddProgramInfoXML(), cmtk::StudyList::AddStudy(), cmtk::AffineRegistrationCommandLine::AffineRegistrationCommandLine(), cmtk::MakeInitialAffineTransformation::AlignDirectionVectors(), cmtk::TemplateArray< T >::Alloc(), cmtk::Xform::AllocateParameterVector(), cmtk::Colormap::Apply(), cmtk::VolumeFromStudy::AssembleVolume(), cmtk::ThreadParameterArray< TClass, TParam >::CancelAsynchronousThreads(), cmtk::VolumeFromSlices::CheckImage(), cmtk::TypedStreamStudylist::Clear(), cmtk::DeformationField::CloneVirtual(), cmtk::CompressedStream::Close(), cmtk::TypedStream::Close(), cmtk::cmtkWhitespaceWriteMiniXML(), cmtk::ConditionVariable::ConditionVariable(), cmtk::FilterVolume::CoupeFilter(), cmtk::VoxelMatchingAffineFunctional::Create(), cmtk::ImagePairSymmetricNonrigidRegistrationFunctional::Create(), cmtk::ImagePairNonrigidRegistrationFunctional::Create(), cmtk::ImagePairAffineRegistrationFunctional::Create(), cmtk::CreateElasticFunctional(), cmtk::ReformatVolume::CreateInterpolator(), cmtk::CreateSymmetricElasticFunctional(), cmtk::DeviceContextCL::DeviceContextCL(), cmtk::DeviceMemoryCL::DeviceMemoryCL(), cmtk::Drain< I >::Drain(), cmtk::ElasticRegistration::ElasticRegistration(), cmtk::ElasticRegistrationCommandLine::ElasticRegistrationCommandLine(), cmtk::ThreadPool::EndThreads(), cmtk::SQLite::Exec(), cmtk::QtRenderImageRGB::Execute(), cmtk::Slicer::Execute(), cmtk::PlaneSource::Execute(), cmtk::ImageToImageRGB::Execute(), cmtk::ImageEdgeOperator::Execute(), cmtk::VolumeFromSlices::FillPlane(), cmtk::Filter< Image, Image >::Filter(), cmtk::MatchedLandmarkList::FindByName(), cmtk::LandmarkList::FindByName(), cmtk::StudyList::FindStudyName(), cmtk::StudyList::FindStudyPath(), cmtk::TemplateArray< T >::FreeData(), cmtk::TypedStream::GenericReadArray(), cmtk::ClassStream::Get(), cmtk::AnatomicalOrientationBase::GetClosestOrientation(), cmtk::Image::GetData(), cmtk::DataGridFilter::GetDataMedianFiltered(), cmtk::ImageRGB::GetDataPtr(), cmtk::TypedStreamStudylist::GetFloatingStudyPath(), cmtk::PlaneSource::GetMaxPosition(), cmtk::CommandLine::GetNextOptional(), cmtk::Threads::GetNumberOfProcessors(), cmtk::Source< Image >::GetOutput(), cmtk::QtRenderImageRGB::GetPixmap(), cmtk::StudyList::GetStudy(), cmtk::ReformatVolume::GetTransformedReference(), cmtk::ReformatVolume::GetTransformedReferenceJacobianAvg(), cmtk::Timers::GetWalltime(), cmtk::PlaneSource::HasValidInputs(), cmtk::ImagePairAffineRegistrationCommandLine::ImagePairAffineRegistrationCommandLine(), cmtk::ImagePairNonrigidRegistration::ImagePairNonrigidRegistration(), cmtk::ImagePairNonrigidRegistrationCommandLine::ImagePairNonrigidRegistrationCommandLine(), cmtk::ImagePairNonrigidRegistrationFunctional::ImagePairNonrigidRegistrationFunctional(), cmtk::ImageRGB::ImageRGB(), cmtk::ImageToImageRGB::ImageToImageRGB(), cmtk::TypedStream::InitInternals(), cmtk::ImagePairNonrigidRegistration::InitRegistration(), cmtk::ElasticRegistration::InitRegistration(), cmtk::XformListEntry::IsAffine(), cmtk::CompressedStream::IsValid(), cmtk::Landmark::Landmark(), cmtk::TransformedVolumeAxes::MakeHash(), cmtk::SplineWarpXform::MakeInverse(), cmtk::CommandLine::Vector< T >::MakeXML(), cmtk::CommandLine::Option< T >::MakeXML(), cmtk::CommandLine::List< T >::MakeXML(), cmtk::CommandLine::KeyToActionSingle::MakeXML(), cmtk::CommandLine::KeyToActionEnum::MakeXML(), cmtk::CommandLine::KeyToAction::MakeXML(), cmtk::CommandLine::Item::Helper< T >::MakeXML(), cmtk::CommandLine::Callback::MakeXML(), cmtk::CommandLine::Switch< T >::MakeXML(), cmtk::Matrix2D< T * >::Matrix2D(), cmtk::ClassStreamStudyList::Merge(), cmtk::MutexLock::MutexLock(), cmtk::CompressedStream::Open(), cmtk::TypedStream::Open(), cmtk::Matrix4x4< T >::operator*(), cmtk::Matrix3x3< T >::operator*(), cmtk::Vector< Types::Coordinate >::operator=(), cmtk::ClassStream::operator>>(), cmtk::operator>>(), cmtk::ImageSymmetryPlaneCommandLineBase::ParseCommandLine(), cmtk::PipelineObject::PipelineObject(), cmtk::PlaneSource::PlaneSource(), cmtk::ProgressConsole::ProgressConsole(), cmtk::ProtocolCallback::ProtocolCallback(), cmtk::QtProgress::QtProgress(), cmtk::QtTriplanarViewer::QtTriplanarViewer(), cmtk::SQLite::Query(), cmtk::XformIO::Read(), cmtk::VolumeIO::Read(), cmtk::VolumeFromStudy::Read(), cmtk::VolumeFromFile::Read(), cmtk::PGM::Read(), cmtk::DICOM::Read(), cmtk::AffineXformITKIO::Read(), cmtk::ScalarImageIO::ReadAnalyze(), cmtk::VolumeFromFile::ReadAnalyzeHdr(), cmtk::VolumeFromFile::ReadBioRad(), cmtk::VolumeIO::ReadGrid(), cmtk::VolumeFromFile::ReadNifti(), cmtk::TypedStream::ReadString(), cmtk::VolumeFromFile::ReadVanderbilt(), cmtk::Study::ReadVolume(), cmtk::Renderer::Renderer(), cmtk::QtRenderImageRGB::RenderTo(), cmtk::Matrix3D< T >::Resize(), cmtk::Matrix2D< T * >::Resize(), cmtk::ThreadParameterArray< TClass, TParam >::RunInParallelAsynchronous(), cmtk::ThreadParameterArray< TClass, TParam >::RunInParallelFIFO(), cmtk::Threads::RunThreads(), cmtk::SearchTrace< R >::SearchTrace(), cmtk::SegmentationLabel::SegmentationLabel(), cmtk::ImageRGB::SetAlphaChannel(), cmtk::UniformVolume::SetCropRegion(), cmtk::Vector< Types::Coordinate >::SetDim(), cmtk::SimpleLevelsetCommandLineBase::SimpleLevelsetCommandLineBase(), cmtk::Slicer::Slicer(), cmtk::QtTriplanarWindow::slotExportLandmarks(), cmtk::QtTriplanarWindow::slotImportLandmarks(), cmtk::QtTriplanarWindow::slotSwitchToStudy(), cmtk::QtTriplanarWindow::slotSwitchToStudyInternal(), cmtk::Source< Image >::Source(), cmtk::SplineWarpXform::SplineWarpXform(), cmtk::SQLite::SQLite(), cmtk::StackBacktrace::StackBacktrace(), cmtk::ThreadPool::StartThreads(), cmtk::StrCmp(), cmtk::TypedStream::StringSplit(), cmtk::StrReplace(), cmtk::TemplateArray< T >::TemplateArray(), cmtk::ThreadParameters< const Self >::ThreadParameters(), cmtk::MountPoints::Translate(), cmtk::PipelineObject::Unregister(), cmtk::Vector< Types::Coordinate >::Vector(), cmtk::VolumeInjectionReconstruction::VolumeInjectionIsotropic(), cmtk::VoxelMatchingElasticFunctional::VoxelMatchingElasticFunctional(), cmtk::VoxelMatchingElasticFunctional_Template< VM >::VoxelMatchingElasticFunctional_Template(), cmtk::VoxelRegistration::VoxelRegistration(), cmtk::VolumeIO::Write(), cmtk::VolumeFromFile::WriteAnalyzeHdr(), cmtk::Drain< I >::~Drain(), cmtk::Matrix2D< T * >::~Matrix2D(), cmtk::Renderer::~Renderer(), and cmtk::TransformedVolumeAxes::~TransformedVolumeAxes().


Typedef Documentation

typedef unsigned char byte

Definition at line 58 of file cmtkTypes.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines