Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Image class for storing images. More...
#include <mitkImage.h>
Public Types | |
enum | ImportMemoryManagementType { CopyMemory, ManageMemory, ReferenceMemory, DontManageMemory } |
typedef Image | Self |
typedef SlicedData | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< ImageDataItem > | ImageDataItemPointer |
typedef itk::Statistics::Histogram< double > | HistogramType |
typedef mitk::ImageStatisticsHolder * | StatisticsHolderPointer |
typedef std::vector< ImageDataItemPointer > | ImageDataItemPointerArray |
Vector container of SmartPointers to ImageDataItems; Class is only for internal usage to allow convenient access to all slices over iterators; See documentation of ImageDataItem for details. More... | |
![]() | |
typedef SlicedData | Self |
typedef BaseData | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::ImageRegion< RegionDimension > | RegionType |
typedef itk::Index< RegionDimension > | IndexType |
typedef IndexType::IndexValueType | IndexValueType |
typedef itk::Offset< RegionDimension > | OffsetType |
typedef OffsetType::OffsetValueType | OffsetValueType |
typedef itk::Size< RegionDimension > | SizeType |
typedef SizeType::SizeValueType | SizeValueType |
![]() | |
typedef BaseData | Self |
typedef itk::DataObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
![]() | |
using | UIDType = std::string |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
const mitk::PixelType | GetPixelType (int n=0) const |
Returns the PixelType of channel n. More... | |
unsigned int | GetDimension () const |
Get dimension of the image. More... | |
unsigned int | GetDimension (int i) const |
Get the size of dimension i (e.g., i=0 results in the number of pixels in x-direction). More... | |
virtual void * | GetData () |
Get the data vector of the complete image, i.e., of all channels linked together. More... | |
double | GetPixelValueByIndex (const itk::Index< 3 > &position, unsigned int timestep=0, unsigned int component=0) |
Get the pixel value at one specific index position. More... | |
double | GetPixelValueByWorldCoordinate (const mitk::Point3D &position, unsigned int timestep=0, unsigned int component=0) |
Get the pixel value at one specific world position. More... | |
virtual vtkImageData * | GetVtkImageData (int t=0, int n=0) |
Get a volume at a specific time t of channel n as a vtkImageData. More... | |
virtual const vtkImageData * | GetVtkImageData (int t=0, int n=0) const |
bool | IsSliceSet (int s=0, int t=0, int n=0) const override |
Get the complete image, i.e., all channels linked together, as a mitkIpPicDescriptor. More... | |
bool | IsVolumeSet (int t=0, int n=0) const override |
Check whether volume at time t in channel n is set. More... | |
bool | IsChannelSet (int n=0) const override |
Check whether the channel n is set. More... | |
virtual bool | SetSlice (const void *data, int s=0, int t=0, int n=0) |
Set data as slice s at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a slice (at least is not smaller than a slice), since there is no chance to check this. More... | |
virtual bool | SetVolume (const void *data, int t=0, int n=0) |
Set data as volume at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a volume (at least is not smaller than a volume), since there is no chance to check this. More... | |
virtual bool | SetChannel (const void *data, int n=0) |
Set data in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a channel (at least is not smaller than a channel), since there is no chance to check this. More... | |
virtual bool | SetImportSlice (void *data, int s=0, int t=0, int n=0, ImportMemoryManagementType importMemoryManagement=CopyMemory) |
Set data as slice s at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a slice (at least is not smaller than a slice), since there is no chance to check this. More... | |
virtual bool | SetImportVolume (void *data, int t=0, int n=0, ImportMemoryManagementType importMemoryManagement=CopyMemory) |
Set data as volume at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a volume (at least is not smaller than a volume), since there is no chance to check this. More... | |
virtual bool | SetImportVolume (const void *const_data, int t=0, int n=0) |
virtual bool | SetImportChannel (void *data, int n=0, ImportMemoryManagementType importMemoryManagement=CopyMemory) |
Set data in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a channel (at least is not smaller than a channel), since there is no chance to check this. More... | |
virtual void | Initialize (const mitk::PixelType &type, unsigned int dimension, const unsigned int *dimensions, unsigned int channels=1) |
virtual void | Initialize (const mitk::PixelType &type, const mitk::BaseGeometry &geometry, unsigned int channels=1, int tDim=1) |
virtual void | Initialize (const mitk::PixelType &, const mitk::TimeSlicedGeometry *, unsigned int, int) |
virtual void | Initialize (const mitk::PixelType &type, const mitk::TimeGeometry &geometry, unsigned int channels=1, int tDim=-1) |
Initialize new (or re-initialize) image information by a TimeGeometry. More... | |
virtual void | Initialize (const mitk::PixelType &type, int sDim, const mitk::PlaneGeometry &geometry2d, bool flipped, unsigned int channels=1, int tDim=1) |
virtual void | Initialize (const mitk::PixelType &type, int sDim, const mitk::PlaneGeometry &geometry2d, unsigned int channels=1, int tDim=1) |
virtual void | Initialize (const mitk::Image *image) |
virtual void | Initialize (const mitk::ImageDescriptor::Pointer inDesc) |
virtual void | Initialize (vtkImageData *vtkimagedata, int channels=1, int tDim=-1, int sDim=-1, int pDim=-1) |
template<typename itkImageType > | |
void | InitializeByItk (const itkImageType *itkimage, int channels=1, int tDim=-1, int sDim=-1) |
virtual bool | IsValidSlice (int s=0, int t=0, int n=0) const |
Check whether slice s at time t in channel n is valid, i.e., is (or can be) inside of the image. More... | |
virtual bool | IsValidVolume (int t=0, int n=0) const |
Check whether volume at time t in channel n is valid, i.e., is (or can be) inside of the image. More... | |
virtual bool | IsValidChannel (int n=0) const |
Check whether the channel n is valid, i.e., is (or can be) inside of the image. More... | |
bool | IsRotated () const |
Returns true if an image is rotated, i.e. its geometry's transformation matrix has nonzero elements besides the diagonal. Non-diagonal elements are checked if larger then 1/1000 of the matrix' trace. More... | |
unsigned int * | GetDimensions () const |
Get the sizes of all dimensions as an integer-array. More... | |
ImageDescriptor::Pointer | GetImageDescriptor () const |
ChannelDescriptor | GetChannelDescriptor (int id=0) const |
void | SetGeometry (BaseGeometry *aGeometry3D) override |
Sets a geometry to an image. More... | |
virtual ImageDataItemPointer | GetSliceData (int s=0, int t=0, int n=0, void *data=nullptr, ImportMemoryManagementType importMemoryManagement=CopyMemory) const |
virtual ImageDataItemPointer | GetVolumeData (int t=0, int n=0, void *data=nullptr, ImportMemoryManagementType importMemoryManagement=CopyMemory) const |
virtual ImageDataItemPointer | GetChannelData (int n=0, void *data=nullptr, ImportMemoryManagementType importMemoryManagement=CopyMemory) const |
ScalarType | GetScalarValueMin (int t=0) const |
(DEPRECATED) Get the minimum for scalar images More... | |
ScalarType | GetScalarValueMax (int t=0) const |
(DEPRECATED) Get the maximum for scalar images More... | |
ScalarType | GetScalarValue2ndMin (int t=0) const |
(DEPRECATED) Get the second smallest value for scalar images More... | |
ScalarType | GetScalarValueMinNoRecompute (unsigned int t=0) const |
(DEPRECATED) Get the smallest value for scalar images, but do not recompute it first More... | |
ScalarType | GetScalarValue2ndMinNoRecompute (unsigned int t=0) const |
(DEPRECATED) Get the second smallest value for scalar images, but do not recompute it first More... | |
ScalarType | GetScalarValue2ndMax (int t=0) const |
(DEPRECATED) Get the second largest value for scalar images More... | |
ScalarType | GetScalarValueMaxNoRecompute (unsigned int t=0) const |
(DEPRECATED) Get the largest value for scalar images, but do not recompute it first More... | |
ScalarType | GetScalarValue2ndMaxNoRecompute (unsigned int t=0) const |
(DEPRECATED) Get the second largest value for scalar images, but do not recompute it first More... | |
ScalarType | GetCountOfMinValuedVoxels (int t=0) const |
(DEPRECATED) Get the count of voxels with the smallest scalar value in the dataset More... | |
ScalarType | GetCountOfMaxValuedVoxels (int t=0) const |
(DEPRECATED) Get the count of voxels with the largest scalar value in the dataset More... | |
unsigned int | GetCountOfMaxValuedVoxelsNoRecompute (unsigned int t=0) const |
(DEPRECATED) Get the count of voxels with the largest scalar value in the dataset More... | |
unsigned int | GetCountOfMinValuedVoxelsNoRecompute (unsigned int t=0) const |
(DEPRECATED) Get the count of voxels with the smallest scalar value in the dataset More... | |
StatisticsHolderPointer | GetStatistics () const |
Returns a pointer to the ImageStatisticsHolder object that holds all statistics information for the image. More... | |
![]() | |
itkStaticConstMacro (RegionDimension, unsigned int, 5) | |
void | UpdateOutputInformation () override |
void | PrepareForNewData () override |
void | SetRequestedRegionToLargestPossibleRegion () override |
bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
bool | VerifyRequestedRegion () override |
Verify that the RequestedRegion is within the LargestPossibleRegion. More... | |
void | SetRequestedRegion (const itk::DataObject *data) override |
virtual void | SetRequestedRegion (SlicedData::RegionType *region) |
void | SetLargestPossibleRegion (SlicedData::RegionType *region) |
Sets the largest possible region. The largest possible region is the entire region occupied by the data object. Note that the largest possible region should always be bigger then the requested region of a certain operation. More... | |
const RegionType & | GetLargestPossibleRegion () const |
virtual const RegionType & | GetRequestedRegion () const |
void | CopyInformation (const itk::DataObject *data) override |
unsigned int | GetNumberOfChannels () const |
Get the number of channels. More... | |
SlicedGeometry3D * | GetSlicedGeometry (unsigned int t=0) const |
Convenience access method for the geometry, which is of type SlicedGeometry3D (or a sub-class of it). More... | |
const SlicedGeometry3D * | GetUpdatedSlicedGeometry (unsigned int t=0) |
Convenience access method for the geometry, which is of type SlicedGeometry3D (or a sub-class of it). More... | |
void | SetGeometry (BaseGeometry *aGeometry3D) override |
Set the BaseGeometry of the data, which will be referenced (not copied!). It has to be a sub-class of SlicedGeometry3D. More... | |
void | SetOrigin (const Point3D &origin) override |
Convenience method for setting the origin of the SlicedGeometry3D instances of all time steps. More... | |
virtual void | SetSpacing (const ScalarType aSpacing[]) |
Convenience method for setting the spacing of the SlicedGeometry3D instances of all time steps. More... | |
virtual void | SetSpacing (mitk::Vector3D aSpacing) |
Convenience method for setting the spacing of the SlicedGeometry3D instances of all time steps. More... | |
![]() | |
BaseProperty::ConstPointer | GetConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override |
Get property by its key. More... | |
std::vector< std::string > | GetPropertyKeys (const std::string &contextName="", bool includeDefaultContext=false) const override |
Query keys of existing properties. More... | |
std::vector< std::string > | GetPropertyContextNames () const override |
Query names of existing contexts. More... | |
BaseProperty * | GetNonConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) override |
Get property by its key. More... | |
void | SetProperty (const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override |
Add new or change existent property. More... | |
void | RemoveProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=false) override |
Removes a property. If the property does not exist, nothing will be done. More... | |
const mitk::TimeGeometry * | GetTimeGeometry () const |
Return the TimeGeometry of the data as const pointer. More... | |
const mitk::TimeGeometry * | GetTimeSlicedGeometry () const |
Return the TimeGeometry of the data as const pointer. More... | |
mitk::TimeGeometry * | GetTimeGeometry () |
Return the TimeGeometry of the data as pointer. More... | |
const mitk::TimeGeometry * | GetUpdatedTimeGeometry () |
Return the TimeGeometry of the data. More... | |
const mitk::TimeGeometry * | GetUpdatedTimeSliceGeometry () |
Return the TimeGeometry of the data. More... | |
const mitk::BaseGeometry * | GetUpdatedGeometry (int t=0) |
Return the BaseGeometry of the data at time t. More... | |
mitk::BaseGeometry * | GetGeometry (int t=0) const |
Return the geometry, which is a TimeGeometry, of the data as non-const pointer. More... | |
void | UpdateOutputInformation () override |
Update the information for this BaseData (the geometry in particular) so that it can be used as an output of a BaseProcess. More... | |
void | CopyInformation (const itk::DataObject *data) override |
Copy information from the specified data set. More... | |
virtual bool | IsInitialized () const |
Check whether the data has been initialized, i.e., at least the Geometry and other header data has been set. More... | |
virtual bool | IsEmptyTimeStep (unsigned int t) const |
Check whether object contains data (at a specified time), e.g., a set of points may be empty. More... | |
virtual bool | IsEmpty () const |
Check whether object contains data (at least at one point in time), e.g., a set of points may be empty. More... | |
void | ExecuteOperation (Operation *operation) override |
overwrite if the Data can be called by an Interactor (StateMachine). More... | |
virtual void | SetTimeGeometry (TimeGeometry *geometry) |
Set the TimeGeometry of the data, which will be referenced (not copied!). More... | |
virtual void | SetClonedGeometry (const BaseGeometry *aGeometry3D) |
Set a clone of the provided Geometry as Geometry of the data. Assumes the data object has only 1 time step ( is a 3D object ) and creates a new TimeGeometry. If an TimeGeometry has already been set for the object, it will be replaced after calling this function. More... | |
virtual void | SetClonedTimeGeometry (const TimeGeometry *geometry) |
Set a clone of the provided TimeGeometry as TimeGeometry of the data. More... | |
virtual void | SetClonedGeometry (const BaseGeometry *aGeometry3D, unsigned int time) |
Set a clone of the provided geometry as BaseGeometry of a given time step. More... | |
mitk::PropertyList::Pointer | GetPropertyList () const |
Get the data's property list. More... | |
void | SetPropertyList (PropertyList *propertyList) |
Set the data's property list. More... | |
mitk::BaseProperty::Pointer | GetProperty (const char *propertyKey) const |
Get the property (instance of BaseProperty) with key propertyKey from the PropertyList, and set it to this, respectively;. More... | |
void | SetProperty (const char *propertyKey, BaseProperty *property) |
itk::SmartPointer< mitk::BaseDataSource > | GetSource () const |
Get the process object that generated this data object. More... | |
unsigned int | GetTimeSteps () const |
Get the number of time steps from the TimeGeometry As the base data has not a data vector given by itself, the number of time steps is defined over the time sliced geometry. In sub classes, a better implementation could be over the length of the data vector. More... | |
unsigned long | GetMTime () const override |
Get the modified time of the last change of the contents this data object or its geometry. More... | |
void | Graft (const DataObject *) override |
![]() | |
itkTypeMacroNoParent (OperationActor) virtual ~OperationActor() | |
![]() | |
Identifiable () | |
Identifiable (const UIDType &uid) | |
Identifiable (const Identifiable &)=delete | |
Identifiable (Identifiable &&) noexcept | |
virtual | ~Identifiable () |
Identifiable & | operator= (const Identifiable &)=delete |
Identifiable & | operator= (Identifiable &&other) noexcept |
UIDType | GetUID () const |
Get unique ID of an object. More... | |
![]() | |
~IPropertyOwner () override | |
![]() | |
virtual | ~IPropertyProvider () |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
![]() | |
static const char * | GetStaticNameOfClass () |
Protected Types | |
typedef itk::MutexLockHolder< itk::SimpleFastMutexLock > | MutexHolder |
Protected Member Functions | |
virtual itk::LightObject::Pointer | InternalClone () const override |
int | GetSliceIndex (int s=0, int t=0, int n=0) const |
int | GetVolumeIndex (int t=0, int n=0) const |
void | ComputeOffsetTable () |
virtual bool | IsValidTimeStep (int t) const |
void | Expand (unsigned int timeSteps) override |
Expands the TimeGeometry to a number of TimeSteps. More... | |
virtual ImageDataItemPointer | AllocateSliceData (int s=0, int t=0, int n=0, void *data=nullptr, ImportMemoryManagementType importMemoryManagement=CopyMemory) const |
virtual ImageDataItemPointer | AllocateVolumeData (int t=0, int n=0, void *data=nullptr, ImportMemoryManagementType importMemoryManagement=CopyMemory) const |
virtual ImageDataItemPointer | AllocateChannelData (int n=0, void *data=nullptr, ImportMemoryManagementType importMemoryManagement=CopyMemory) const |
Image () | |
Image (const Image &other) | |
~Image () override | |
void | Clear () override |
Calls ClearData() and InitializeEmpty();. More... | |
void | Initialize () override |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
![]() | |
SlicedData () | |
SlicedData (const SlicedData &other) | |
~SlicedData () override | |
![]() | |
BaseData () | |
BaseData (const BaseData &other) | |
~BaseData () override | |
virtual void | InitializeTimeGeometry (unsigned int timeSteps=1) |
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and evenly timed. In many cases it will be necessary to overwrite this in sub-classes. More... | |
virtual void | InitializeTimeSlicedGeometry (unsigned int timeSteps=1) |
Initialize the TimeGeometry for a number of time steps. The TimeGeometry is initialized empty and evenly timed. In many cases it will be necessary to overwrite this in sub-classes. More... | |
virtual void | ClearData () |
reset to non-initialized state, release memory More... | |
virtual void | InitializeEmpty () |
Pure virtual; Must be used in subclasses to get a data object to a valid state. Should at least create one empty object and call Superclass::InitializeTimeGeometry() to ensure an existing valid geometry. More... | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Protected Attributes | |
ImageDataItemPointerArray | m_Channels |
ImageDataItemPointerArray | m_Volumes |
ImageDataItemPointerArray | m_Slices |
itk::SimpleFastMutexLock | m_ImageDataArraysLock |
unsigned int | m_Dimension |
unsigned int * | m_Dimensions |
ImageDescriptor::Pointer | m_ImageDescriptor |
vcl_size_t * | m_OffsetTable |
ImageDataItemPointer | m_CompleteData |
StatisticsHolderPointer | m_ImageStatistics |
![]() | |
RegionType | m_LargestPossibleRegion |
RegionType | m_RequestedRegion |
bool | m_RequestedRegionInitialized |
RegionType | m_BufferedRegion |
bool | m_UseLargestPossibleRegion |
![]() | |
bool | m_LastRequestedRegionWasOutsideOfTheBufferedRegion |
unsigned int | m_SourceOutputIndexDuplicate |
bool | m_Initialized |
Image class for storing images.
Can be asked for header information, the data vector, the mitkIpPicDescriptor struct or vtkImageData objects. If not the complete data is required, the appropriate SubImageSelector class should be used for access. Image organizes sets of slices (s x 2D), volumes (t x 3D) and channels (n x ND). Channels are for different kind of data, e.g., morphology in channel 0, velocities in channel 1. All channels must have the same Geometry! In particular, the dimensions of all channels are the same, only the pixel-type may differ between channels.
For importing ITK images use of mitk::ITKImageImport is recommended, see Adaptor Classes.
For ITK v3.8 and older: Converting coordinates from the ITK physical coordinate system (which does not support rotated images) to the MITK world coordinate system should be performed via the BaseGeometry of the Image, see BaseGeometry::WorldToItkPhysicalPoint.
For more information, see MITK Image .
Definition at line 72 of file mitkImage.h.
typedef itk::SmartPointer<const Self> mitk::Image::ConstPointer |
Definition at line 84 of file mitkImage.h.
typedef itk::Statistics::Histogram<double> mitk::Image::HistogramType |
Definition at line 92 of file mitkImage.h.
Smart Pointer type to a ImageDataItem.
Definition at line 88 of file mitkImage.h.
typedef std::vector<ImageDataItemPointer> mitk::Image::ImageDataItemPointerArray |
Vector container of SmartPointers to ImageDataItems; Class is only for internal usage to allow convenient access to all slices over iterators; See documentation of ImageDataItem for details.
Definition at line 116 of file mitkImage.h.
|
protected |
Definition at line 648 of file mitkImage.h.
typedef itk::SmartPointer<Self> mitk::Image::Pointer |
Definition at line 84 of file mitkImage.h.
typedef Image mitk::Image::Self |
Definition at line 84 of file mitkImage.h.
Definition at line 93 of file mitkImage.h.
typedef SlicedData mitk::Image::Superclass |
Definition at line 84 of file mitkImage.h.
Enumerator | |
---|---|
CopyMemory | |
ManageMemory | |
ReferenceMemory | |
DontManageMemory |
Definition at line 104 of file mitkImage.h.
|
protected |
Definition at line 38 of file mitkImage.cpp.
References FILL_C_ARRAY, m_Dimensions, mitk::BaseData::m_Initialized, and MAX_IMAGE_DIMENSIONS.
|
protected |
Definition at line 52 of file mitkImage.cpp.
References mitk::TimeGeometry::Clone(), FILL_C_ARRAY, GetDimension(), GetDimensions(), GetPixelType(), mitk::BaseData::GetTimeGeometry(), GetVolumeData(), Initialize(), m_Dimensions, MAX_IMAGE_DIMENSIONS, mitk::BaseData::SetTimeGeometry(), and SetVolume().
|
overrideprotected |
Definition at line 90 of file mitkImage.cpp.
References Clear(), m_ImageStatistics, and m_OffsetTable.
|
protectedvirtual |
Definition at line 1281 of file mitkImage.cpp.
References CopyMemory, m_Channels, m_ImageDataArraysLock, m_ImageDescriptor, m_OffsetTable, and ManageMemory.
Referenced by SetImportChannel().
|
protectedvirtual |
Definition at line 1169 of file mitkImage.cpp.
References GetSliceIndex(), GetVolumeIndex(), m_Channels, m_ImageDataArraysLock, m_ImageDescriptor, m_OffsetTable, m_Slices, m_Volumes, and ManageMemory.
Referenced by SetImportSlice().
|
protectedvirtual |
Definition at line 1234 of file mitkImage.cpp.
References CopyMemory, GetVolumeIndex(), m_Channels, m_Dimensions, m_ImageDataArraysLock, m_ImageDescriptor, m_OffsetTable, m_Volumes, and ManageMemory.
Referenced by SetImportVolume().
|
overrideprotectedvirtual |
Calls ClearData() and InitializeEmpty();.
Reimplemented from mitk::BaseData.
Definition at line 1314 of file mitkImage.cpp.
References mitk::BaseData::Clear(), and m_Dimensions.
Referenced by Initialize(), and ~Image().
Pointer mitk::Image::Clone | ( | ) | const |
|
protected |
Definition at line 1124 of file mitkImage.cpp.
References m_Dimension, m_Dimensions, and m_OffsetTable.
Referenced by Initialize().
|
overrideprotectedvirtual |
Expands the TimeGeometry to a number of TimeSteps.
The method expands the TimeGeometry to the given number of TimeSteps, filling newly created elements with empty geometries. Sub-classes should override this method to handle the elongation of their data vectors, too. Note that a shrinking is neither possible nor intended.
Reimplemented from mitk::BaseData.
Definition at line 1148 of file mitkImage.cpp.
References mitk::BaseData::Expand().
Referenced by mitk::ImageStatisticsHolder::Expand().
|
virtual |
Definition at line 457 of file mitkImage.cpp.
References mitk::BaseData::GetSource(), GetVolumeIndex(), IsValidChannel(), m_Channels, m_Dimension, m_Dimensions, m_ImageDataArraysLock, m_ImageDescriptor, m_OffsetTable, mitk::SlicedData::m_RequestedRegion, mitk::SlicedData::m_RequestedRegionInitialized, m_Slices, m_Volumes, ManageMemory, and offset.
Referenced by mitk::ImageToIGTLMessageFilter::GenerateData(), GetData(), and SetImportChannel().
|
inline |
Definition at line 529 of file mitkImage.h.
References DEPRECATED.
Referenced by QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded().
|
inlineoverridevirtual |
Reimplemented from mitk::SlicedData.
Definition at line 84 of file mitkImage.h.
|
virtual |
Reimplemented from mitk::SlicedData.
mitk::ScalarType mitk::Image::GetCountOfMaxValuedVoxels | ( | int | t = 0 | ) | const |
(DEPRECATED) Get the count of voxels with the largest scalar value in the dataset
Definition at line 1442 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetCountOfMaxValuedVoxels(), and m_ImageStatistics.
unsigned int mitk::Image::GetCountOfMaxValuedVoxelsNoRecompute | ( | unsigned int | t = 0 | ) | const |
(DEPRECATED) Get the count of voxels with the largest scalar value in the dataset
Definition at line 1447 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetCountOfMaxValuedVoxelsNoRecompute(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetCountOfMinValuedVoxels | ( | int | t = 0 | ) | const |
(DEPRECATED) Get the count of voxels with the smallest scalar value in the dataset
Definition at line 1437 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetCountOfMinValuedVoxels(), and m_ImageStatistics.
unsigned int mitk::Image::GetCountOfMinValuedVoxelsNoRecompute | ( | unsigned int | t = 0 | ) | const |
(DEPRECATED) Get the count of voxels with the smallest scalar value in the dataset
Definition at line 1452 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetCountOfMinValuedVoxelsNoRecompute(), and m_ImageStatistics.
|
virtual |
Get the data vector of the complete image, i.e., of all channels linked together.
If you only want to access a slice, volume at a specific time or single channel use one of the SubImageSelector classes.
Definition at line 118 of file mitkImage.cpp.
References GetChannelData(), mitk::BaseData::GetSource(), m_CompleteData, m_ImageDescriptor, and mitk::BaseData::m_Initialized.
Referenced by GetPixelValueByIndex(), mitk_GetMemoryViewFromImage(), and mitk_SetImageFromArray().
unsigned int mitk::Image::GetDimension | ( | ) | const |
Get dimension of the image.
Definition at line 106 of file mitkImage.cpp.
References m_Dimension.
Referenced by QmitkSlicesInterpolator::AcceptAllInterpolations(), mitk::LabelSetImage::AddLayer(), mitk::SurfaceVtkMapper3D::ApplyAllProperties(), mitk::ImagePixelAccessor< TPixel, VDimension >::CheckData(), mitk::ImageToOpenCVImageFilter::CheckImage(), mitk::MaskedAlgorithmHelper::CheckSupport(), mitk::MultiComponentImageDataComparisonFilter::CompareMultiComponentImage(), mitk::BoundingShapeCropper::ComputeData(), mitk::Tool::CreateEmptySegmentationNode(), mitk::LabelSetImage::CreateLabelMask(), mitk::SegTool2D::DetermineAffectedImageSlice(), QmitkPythonVariableStackTableModel::dropMimeData(), mitk::TestDICOMLoading::DumpImageInformation(), mitk::Equal(), mitk::ImageToIGTLMessageFilter::GenerateData(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), mitk::HeightFieldSurfaceClipImageFilter::GenerateOutputInformation(), QmitkSemanticRelationsUIHelper::GetPixmapFromImageNode(), GetPixmapFromImageNode(), mitk::DICOMSegmentationIO::GetWriterConfidenceLevel(), Image(), mitk::LabelSetImage::Initialize(), mitk::ContourModelSetToImageFilter::InitializeOutputEmpty(), mitk_GetMemoryViewFromImage(), mitk_SetImageFromArray(), QmitkSurfaceBasedInterpolatorWidget::OnToolManagerWorkingDataModified(), QmitkSliceBasedInterpolatorWidget::OnToolManagerWorkingDataModified(), mitk::AccessItkImageFunctor< X, VDimension, T1, T2, T3 >::operator()(), PrintSelf(), ReadVoxelInternal(), mitk::SegmentationInterpolationController::ScanWholeVolume(), mitk::LabelSetImage::SetActiveLayer(), mitk::LevelWindow::SetAuto(), mitk::SliceBasedInterpolationController::SetChangedSlice(), mitk::SegmentationInterpolationController::SetChangedVolume(), mitk::CompressedImageContainer::SetImage(), mitk::ToFCompositeFilter::SetInput(), mitk::ToFImageRecorderFilter::SetInput(), mitk::SegmentationInterpolationController::SetSegmentationVolume(), mitk::ImageSource::SplitRequestedRegion(), mitk::LabelSetImage::UpdateCenterOfMass(), and mitk::ImageWriter::WriteByITK().
unsigned int mitk::Image::GetDimension | ( | int | i | ) | const |
Get the size of dimension i (e.g., i=0 results in the number of pixels in x-direction).
Definition at line 111 of file mitkImage.cpp.
References m_Dimension, and m_Dimensions.
unsigned int * mitk::Image::GetDimensions | ( | ) | const |
Get the sizes of all dimensions as an integer-array.
Definition at line 1309 of file mitkImage.cpp.
References m_Dimensions.
Referenced by mitk::LabelSetImage::AddLayer(), mitk::pa::SpectralUnmixingFilterBase::AddRelativeErrorSettings(), mitk::LabelSetImage::Concatenate(), mitk::PythonService::CopyToPythonAsCvImage(), mitk::PythonService::CopyToPythonAsSimpleItkImage(), Image(), mitk::LabelSetImage::Initialize(), mitk::LevelWindow::SetAuto(), mitk::pa::SpectralUnmixingSO2::Verbose(), and mitk::ImageWriter::WriteByITK().
|
inline |
Definition at line 528 of file mitkImage.h.
Referenced by QmitkSlicesInterpolator::AcceptAllInterpolations(), and mitk::LabelSetImage::AddLayer().
const mitk::PixelType mitk::Image::GetPixelType | ( | int | n = 0 | ) | const |
Returns the PixelType of channel n.
Definition at line 101 of file mitkImage.cpp.
References m_ImageDescriptor.
Referenced by mitk::LabelSetImage::AddLayer(), mitk::ImagePixelAccessor< TPixel, VDimension >::CheckData(), mitk::MultiComponentImageDataComparisonFilter::CompareMultiComponentImage(), mitk::BoundingObjectCutter::ComputeData(), mitk::ImageStatisticsHolder::ComputeImageStatistics(), mitk::ConcentrationCurveGenerator::ConvertSignalToConcentrationCurve(), mitk::PythonService::CopyToPythonAsCvImage(), mitk::PythonService::CopyToPythonAsSimpleItkImage(), mitk::TestDICOMLoading::DumpImageInformation(), mitk::Equal(), mitk::ImageToIGTLMessageFilter::GenerateData(), mitk::RGBToRGBACastImageFilter::GenerateData(), mitk::MultiComponentImageDataComparisonFilter::GenerateData(), mitk::CompareImageDataFilter::GenerateData(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), mitk::ContourModelSetToImageFilter::GenerateOutputInformation(), mitk::SurfaceToImageFilter::GenerateOutputInformation(), mitk::HeightFieldSurfaceClipImageFilter::GenerateOutputInformation(), mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetConsecutivePixelsAsVector(), mitk::BoundingObjectCutter::GetOutputPixelType(), mitk::AutoCropImageFilter::GetOutputPixelType(), mitk::BoundingShapeCropper::GetOutputPixelType(), QmitkSemanticRelationsUIHelper::GetPixmapFromImageNode(), GetPixmapFromImageNode(), Image(), Initialize(), mitk::ContourModelSetToImageFilter::InitializeOutputEmpty(), QmitkDataNodeComponentAction::InitializeWithDataNode(), mitk::RGBToRGBACastImageFilter::IsRGBImage(), mitk::ImageMappingHelper::map(), mitk_GetMemoryViewFromImage(), mitk_SetImageFromArray(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), mitk::ReadVoxel(), mitk::LevelWindow::SetAuto(), mitk::CompressedImageContainer::SetImage(), mitk::SurfaceToImageFilter::Stencil3DImage(), and mitk::ImageWriter::WriteByITK().
double mitk::Image::GetPixelValueByIndex | ( | const itk::Index< 3 > & | position, |
unsigned int | timestep = 0 , |
||
unsigned int | component = 0 |
||
) |
Get the pixel value at one specific index position.
The pixel type is always being converted to double.
Definition at line 159 of file mitkImage.cpp.
References AccessPixel(), GetData(), mitk::PixelType::GetNumberOfComponents(), mitk::BaseData::GetTimeSteps(), m_ImageDescriptor, MITK_WARN, mitkPixelTypeMultiplex3, and offset.
Referenced by GetPixelValueByWorldCoordinate().
double mitk::Image::GetPixelValueByWorldCoordinate | ( | const mitk::Point3D & | position, |
unsigned int | timestep = 0 , |
||
unsigned int | component = 0 |
||
) |
Get the pixel value at one specific world position.
The pixel type is always being converted to double. Please consider using image accessors instead: See Doxygen/Related-Pages/Concepts/Image. This method can be replaced by a templated method from ImagePixelWriteAccessor or ImagePixelReadAccessor
Definition at line 199 of file mitkImage.cpp.
References mitk::BaseData::GetGeometry(), GetPixelValueByIndex(), mitk::BaseData::GetTimeSteps(), and mitk::BaseGeometry::WorldToIndex().
mitk::ScalarType mitk::Image::GetScalarValue2ndMax | ( | int | t = 0 | ) | const |
(DEPRECATED) Get the second largest value for scalar images
Definition at line 1422 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValue2ndMax(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetScalarValue2ndMaxNoRecompute | ( | unsigned int | t = 0 | ) | const |
(DEPRECATED) Get the second largest value for scalar images, but do not recompute it first
Definition at line 1432 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValue2ndMaxNoRecompute(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetScalarValue2ndMin | ( | int | t = 0 | ) | const |
(DEPRECATED) Get the second smallest value for scalar images
Definition at line 1407 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValue2ndMin(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetScalarValue2ndMinNoRecompute | ( | unsigned int | t = 0 | ) | const |
(DEPRECATED) Get the second smallest value for scalar images, but do not recompute it first
Definition at line 1417 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValue2ndMinNoRecompute(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetScalarValueMax | ( | int | t = 0 | ) | const |
(DEPRECATED) Get the maximum for scalar images
Definition at line 1401 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValueMax(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetScalarValueMaxNoRecompute | ( | unsigned int | t = 0 | ) | const |
(DEPRECATED) Get the largest value for scalar images, but do not recompute it first
Definition at line 1427 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValueMaxNoRecompute(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetScalarValueMin | ( | int | t = 0 | ) | const |
(DEPRECATED) Get the minimum for scalar images
Definition at line 1395 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValueMin(), and m_ImageStatistics.
mitk::ScalarType mitk::Image::GetScalarValueMinNoRecompute | ( | unsigned int | t = 0 | ) | const |
(DEPRECATED) Get the smallest value for scalar images, but do not recompute it first
Definition at line 1412 of file mitkImage.cpp.
References mitk::ImageStatisticsHolder::GetScalarValueMinNoRecompute(), and m_ImageStatistics.
|
virtual |
Definition at line 243 of file mitkImage.cpp.
References GetSliceIndex(), mitk::BaseData::GetSource(), GetVolumeIndex(), IsValidSlice(), m_Channels, m_Dimensions, m_ImageDataArraysLock, m_ImageDescriptor, m_OffsetTable, mitk::SlicedData::m_RequestedRegion, mitk::SlicedData::m_RequestedRegionInitialized, m_Slices, m_Volumes, and ManageMemory.
Referenced by ReadVoxelInternal(), SetImportSlice(), and mitk::ToFCompositeFilter::SetInput().
|
protected |
Definition at line 1155 of file mitkImage.cpp.
References IsValidSlice(), and m_Dimensions.
Referenced by AllocateSliceData(), GetSliceData(), GetVolumeData(), IsSliceSet(), and IsVolumeSet().
|
inlinestatic |
Definition at line 84 of file mitkImage.h.
Referenced by mitk::ImageWriter::GetSupportedBaseData(), and mitk::BaseDataCompare::RegisterCoreEquals().
|
inline |
Returns a pointer to the ImageStatisticsHolder object that holds all statistics information for the image.
All Get-methods for statistics properties formerly accessible directly from an Image object are now moved to the new ImageStatisticsHolder object.
Definition at line 646 of file mitkImage.h.
Referenced by QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), mitk::LevelWindow::SetAuto(), QmitkAdaptiveRegionGrowingToolGUI::SetInputImageNode(), and mitk::LevelWindow::SetToImageRange().
|
virtual |
Definition at line 326 of file mitkImage.cpp.
References GetSliceIndex(), mitk::BaseData::GetSource(), GetVolumeIndex(), IsValidVolume(), m_Channels, m_Dimensions, m_ImageDataArraysLock, m_ImageDescriptor, m_OffsetTable, mitk::SlicedData::m_RequestedRegion, mitk::SlicedData::m_RequestedRegionInitialized, m_Slices, m_Volumes, ManageMemory, and offset.
Referenced by mitk::MultiComponentImageDataComparisonFilter::CompareMultiComponentImage(), GetVtkImageData(), Image(), mitk::ContourModelSetToImageFilter::InitializeOutputEmpty(), ReadVoxelInternal(), mitk::SegmentationInterpolationController::ScanWholeVolume(), mitk::CompressedImageContainer::SetImage(), and SetImportVolume().
|
protected |
Definition at line 1162 of file mitkImage.cpp.
References IsValidVolume(), and m_Dimensions.
Referenced by AllocateSliceData(), AllocateVolumeData(), GetChannelData(), GetSliceData(), GetVolumeData(), IsSliceSet(), and IsVolumeSet().
|
virtual |
Get a volume at a specific time t of channel n as a vtkImageData.
Definition at line 217 of file mitkImage.cpp.
References mitk::BaseData::GetSource(), GetVolumeData(), and mitk::BaseData::m_Initialized.
Referenced by mitk::SurfaceVtkMapper3D::ApplyAllProperties(), mitk::ContourModelUtils::FillContourInSlice(), mitk::LabeledImageToSurfaceFilter::GenerateData(), mitk::ExtractSliceFilter::GenerateData(), mitk::GPUVolumeMapper3D::GenerateDataForRenderer(), mitk::VolumeMapperVtkSmart3D::GetInputImage(), mitk::ImageSource::GetVtkImageData(), mitk::GPUVolumeMapper3D::IsRenderable(), QmitkSlicesInterpolator::OnAcceptInterpolationClicked(), and writeVti().
|
virtual |
Definition at line 230 of file mitkImage.cpp.
References mitk::BaseData::GetSource(), GetVolumeData(), and mitk::BaseData::m_Initialized.
|
virtual |
initialize new (or re-initialize) image information
Definition at line 838 of file mitkImage.cpp.
References Clear(), ComputeOffsetTable(), FILL_C_ARRAY, mitk::SlicedData::GetNumberOfChannels(), Initialize(), m_Channels, m_Dimension, m_Dimensions, m_ImageDescriptor, mitk::BaseData::m_Initialized, mitk::SlicedData::m_LargestPossibleRegion, m_Slices, m_Volumes, MAX_IMAGE_DIMENSIONS, mitk::ImageDescriptor::New(), mitk::ProportionalTimeGeometry::New(), mitk::SlicedGeometry3D::New(), mitk::PlaneGeometry::New(), and mitk::BaseData::SetTimeGeometry().
Referenced by mitk::HeightFieldSurfaceClipImageFilter::GenerateOutputInformation().
|
virtual |
initialize new (or re-initialize) image information by a BaseGeometry
tDim | defines the number of time steps for which the Image should be initialized |
Definition at line 919 of file mitkImage.cpp.
References mitk::BaseGeometry::Clone(), Initialize(), and mitk::ProportionalTimeGeometry::New().
|
inlinevirtual |
initialize new (or re-initialize) image information by a TimeGeometry
tDim | defines the number of time steps for which the Image should be initialized |
Definition at line 289 of file mitkImage.h.
References DEPRECATED, and image.
|
virtual |
Initialize new (or re-initialize) image information by a TimeGeometry.
tDim | override time dimension if the value is bigger than 0 (Default -1) |
Definition at line 929 of file mitkImage.cpp.
References mitk::TimeGeometry::Clone(), mitk::TimeGeometry::CountTimeSteps(), mitk::TimeGeometry::GetGeometryCloneForTimeStep(), mitk::TimeGeometry::GetGeometryForTimeStep(), Initialize(), MITK_WARN, mitk::SlicedData::SetGeometry(), and mitk::BaseData::SetTimeGeometry().
|
virtual |
initialize new (or re-initialize) image information by a PlaneGeometry and number of slices
Initializes the bounding box according to the width/height of the PlaneGeometry and sDim via SlicedGeometry3D::InitializeEvenlySpaced. The spacing is calculated from the PlaneGeometry.
Definition at line 1000 of file mitkImage.cpp.
References mitkThrow.
|
virtual |
Definition at line 1010 of file mitkImage.cpp.
References mitk::PlaneGeometry::Clone(), Initialize(), and mitk::SlicedGeometry3D::New().
|
virtual |
initialize new (or re-initialize) image information by another mitk-image. Only the header is used, not the data vector!
Reimplemented in mitk::LabelSetImage.
Definition at line 1021 of file mitkImage.cpp.
References GetPixelType(), mitk::BaseData::GetTimeGeometry(), and Initialize().
|
virtual |
Definition at line 828 of file mitkImage.cpp.
References Initialize(), and m_ImageDescriptor.
|
virtual |
initialize new (or re-initialize) image information by pic. Dimensions and Geometry3D /PlaneGeometry are set according to the tags in pic. Only the header is used, not the data vector! Use SetPicVolume(pic) to set the data vector.
tDim | override time dimension (n[3]) in pic (if >0) |
sDim | override z-space dimension (n[2]) in pic (if >0) |
tDim | override time dimension in vtkimagedata (if >0 and <) |
sDim | override z-space dimension in vtkimagedata (if >0 and <) |
pDim | override y-space dimension in vtkimagedata (if >0 and <) |
Definition at line 1026 of file mitkImage.cpp.
References mitk::FillVector3D(), mitk::SlicedGeometry3D::GetPlaneGeometry(), mitk::SlicedData::GetSlicedGeometry(), Initialize(), m_Dimension, m_Dimensions, mitk::MakePixelType(), mitk::ProportionalTimeGeometry::New(), mitk::BaseGeometry::SetOrigin(), mitk::BaseGeometry::SetSpacing(), and mitk::BaseData::SetTimeGeometry().
|
overrideprotected |
Definition at line 803 of file mitkImage.cpp.
References m_Channels, m_CompleteData, m_ImageStatistics, m_Slices, m_Volumes, and mitk::SlicedData::SetRequestedRegionToLargestPossibleRegion().
Referenced by Image(), Initialize(), mitk::LabelSetImage::InitializeByLabeledImage(), and mitk::USImage::USImage().
|
inline |
initialize new (or re-initialize) image information by itkimage, a templated itk-image. Only the header is used, not the data vector! Use SetVolume(itkimage->GetBufferPointer()) to set the data vector.
tDim | override time dimension in itkimage (if >0 and <) |
sDim | override z-space dimension in itkimage (if >0 and <) |
Definition at line 366 of file mitkImage.h.
References mitk::eps, mitk::FillVector3D(), mitk::BaseGeometry::GetIndexToWorldTransform(), mitk::SlicedGeometry3D::InitializeEvenlySpaced(), MITK_DEBUG, MITK_ERROR, MITK_WARN, mitk::BaseGeometry::SetOrigin(), and mitk::BaseGeometry::SetSpacing().
|
inlineoverrideprotectedvirtual |
Definition at line 648 of file mitkImage.h.
|
overridevirtual |
Check whether the channel n is set.
Implements mitk::SlicedData.
Definition at line 636 of file mitkImage.cpp.
References IsValidChannel(), m_Channels, m_Dimensions, and m_ImageDataArraysLock.
Referenced by SetImportChannel().
bool mitk::Image::IsRotated | ( | ) | const |
Returns true if an image is rotated, i.e. its geometry's transformation matrix has nonzero elements besides the diagonal. Non-diagonal elements are checked if larger then 1/1000 of the matrix' trace.
Definition at line 1367 of file mitkImage.cpp.
References mitk::BaseData::GetGeometry(), mitk::BaseGeometry::GetIndexToWorldTransform(), and k().
Referenced by mitk::RegEvaluationMapper2D::SetDefaultProperties().
|
overridevirtual |
Get the complete image, i.e., all channels linked together, as a mitkIpPicDescriptor.
If you only want to access a slice, volume at a specific time or single channel use one of the SubImageSelector classes. Check whether slice s at time t in channel n is set
Implements mitk::SlicedData.
Definition at line 572 of file mitkImage.cpp.
References GetSliceIndex(), GetVolumeIndex(), IsValidSlice(), m_Channels, m_ImageDataArraysLock, m_Slices, and m_Volumes.
Referenced by SetImportSlice().
|
virtual |
Check whether the channel n is valid, i.e., is (or can be) inside of the image.
Definition at line 1116 of file mitkImage.cpp.
References IsValidSlice(), and mitk::BaseData::m_Initialized.
Referenced by GetChannelData(), IsChannelSet(), and SetImportChannel().
|
virtual |
Check whether slice s at time t in channel n is valid, i.e., is (or can be) inside of the image.
Definition at line 1099 of file mitkImage.cpp.
References mitk::SlicedData::GetNumberOfChannels(), m_Dimensions, and mitk::BaseData::m_Initialized.
Referenced by GetSliceData(), GetSliceIndex(), IsSliceSet(), IsValidChannel(), IsValidVolume(), and SetImportSlice().
|
protectedvirtual |
Definition at line 1143 of file mitkImage.cpp.
References m_Dimension, and m_Dimensions.
Referenced by mitk::ImageStatisticsHolder::ComputeImageStatistics(), mitk::ImageStatisticsHolder::Expand(), and mitk::ImageStatisticsHolder::IsValidTimeStep().
|
virtual |
Check whether volume at time t in channel n is valid, i.e., is (or can be) inside of the image.
Definition at line 1108 of file mitkImage.cpp.
References IsValidSlice(), and mitk::BaseData::m_Initialized.
Referenced by GetVolumeData(), GetVolumeIndex(), IsVolumeSet(), and SetImportVolume().
|
overridevirtual |
Check whether volume at time t in channel n is set.
Implements mitk::SlicedData.
Definition at line 602 of file mitkImage.cpp.
References GetSliceIndex(), GetVolumeIndex(), IsValidVolume(), m_Channels, m_Dimensions, m_ImageDataArraysLock, m_Slices, and m_Volumes.
Referenced by mitk::ExtractSliceFilter::GenerateData(), and SetImportVolume().
|
static |
Referenced by QmitkSlicesInterpolator::AcceptAllInterpolations(), mitk::ToFNrrdImageWriter::Add(), mitk::LabelSetImage::AddLayer(), mitk::pa::SpectralUnmixingFilterBase::AddOutputs(), mitk::PhotoacousticFilterService::ApplyBeamforming(), mitk::PhotoacousticFilterService::ApplyCropping(), Assert_ItkImportWithinAccessByItkSucceded_ReturnsTrue(), mitk::ConcentrationCurveGenerator::CalculateAverageBaselineImage(), CalculateGreyLevelDistanceZoneFeatures(), mitk::PixelManipulationTool::CalculateImage(), mitk::CastToMitkImage(), CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckIntersectionWithRotatedGeometry90(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), CheckPlanesOutsideOfBoundingBox(), mitk::CLUtil::ClosingBinary(), mitk::FastMarchingTool::ConfirmSegmentation(), mitk::ConcentrationCurveGenerator::Convert(), mitk::OpenCVToMitkImageFilter::ConvertCVMatToMitkImage(), mitk::pa::InSilicoTissueVolume::ConvertToMitkImage(), mitk::PythonService::CopyCvImageFromPython(), mitk::PythonService::CopySimpleItkImageFromPython(), mitk::CreateDistanceImageFromSurfaceFilter::CreateDistanceImageFromSurfaceFilter(), mitk::LabelSetImage::CreateLabelMask(), mitk::ROIBasedParameterFitImageGenerator::DoImageGeneration(), mitk::ImageLiveWireContourModelFilter::DumpMaskImage(), mitk::CompareImageDataFilter::EstimateValueDifference(), ExecuteMultiResolution(), ExecuteSpecificWaveletTransformation(), mitk::PhotoacousticFilterService::ExtendImage(), ExtractSlicesFromImages(), mitk::ModelSignalImageGenerator::Generate(), mitk::CastToFloatImageFilter::GenerateData(), mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), mitk::BeamformingFilter::GenerateData(), mitk::MaskAndCutRoiImageFilter::GenerateData(), mitk::OverwriteSliceImageFilter::GenerateData(), mitk::ImageGenerationHelper::GenerateDynamicImageMITK(), mitk::GenerateDynamicTestImageMITK(), mitk::ImageGenerator::GenerateGradientImage(), GenerateGradientWithDimXImage(), mitk::ImageGenerator::GenerateImageFromReference(), GenerateMaskImage(), generateModelFitTestNode(), generateModelFitTestStorage(), mitk::ImageGenerator::GenerateRandomImage(), mitk::GenerateTestFrame(), mitk::GenerateTestMaskMITK(), GetEmptyTestImageWithGeometry(), mitk::ToFOpenCVImageGrabber::GetImage(), mitk::CompressedImageContainer::GetImage(), mitk::MaskGenerator::GetMask(), mitk::PhotoacousticMotionCorrectionFilter::GetMatrix(), mitk::USImageSource::GetNextImage(), mitk::USTelemedImageSource::GetNextRawImage(), mitk::IGTLMessageToUSImageFilter::GetNextRawImage(), mitk::USDiPhASImageSource::GetNextRawImage(), mitk::DataCollection::GetProbabilityMap(), mitk::BooleanOperation::GetResult(), mitk::HotspotMaskGenerator::HotspotMaskGenerator(), mitk::IgnorePixelMaskGenerator::IgnorePixelMaskGenerator(), mitk::USDiPhASImageSource::ImageDataCallback(), mitk::ImageMaskGenerator::ImageMaskGenerator(), mitk::OclImage::InitializeMITKImage(), mitk::LabelSetImageToSurfaceFilter::InternalProcessing(), mitk::ShapeBasedInterpolationAlgorithm::Interpolate(), mitk::AutoCropImageFilter::ITKCrop3DImage(), mitk::DicomSeriesReader::LoadDicom(), LocalHistograms(), LocalHistograms2(), localStatistic(), main(), mitk::ImageSource::MakeOutput(), mitk::ImageMappingHelper::map(), mitkImageTest(), mitkLevelWindowTest(), mitkModelFitUIDHelperTest(), mitkPropertySerializationTest(), mitkRegistrationBaseTest(), mitkSimpleHistogramTest(), mitk::CESTImageNormalizationFilter::NormalizeTimeSteps(), mitk::RegionGrowingTool::OnMouseMoved(), mitk::RegionGrowingTool::OnMousePressedOutside(), mitk::CorrectorTool2D::OnMouseReleased(), mitk::PhotoacousticMotionCorrectionFilter::PhotoacousticMotionCorrectionFilter(), mitk::PlanarFigureMaskGenerator::PlanarFigureMaskGenerator(), ProcessFeatureImages(), mitk::ImageVtkXmlIO::Read(), mitk::ImageVtkLegacyIO::Read(), mitk::RawImageFileReaderService::Read(), mitk::ItkImageIO::Read(), mitk::LabelSetImageIO::Read(), mitk::RTPlanReaderService::Read(), mitk::TransformationOperation::ResampleImage(), ResampleImageToReferenceFunction(), mitk::pa::VolumeManipulator::RescaleImage(), mitk::CreateDistanceImageFromSurfaceFilter::Reset(), mitk::NonBlockingAlgorithm::SetItkImageAsMITKImagePointerParameter(), mitk::USDiPhASImageSource::SetRecordingStatus(), mitk::ImageMaskGenerator::SetTimeStep(), mitk::BinaryThresholdTool::SetupPreviewNode(), mitk::BinaryThresholdULTool::SetupPreviewNode(), mitk::pa::SpectralUnmixingSO2::SpectralUnmixingSO2(), mitk::SurfaceToImageFilter::Stencil3DImage(), StoreResultImages(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateFunction(), mitk::ToFDebugHelper::ToFDebugHelper::ShowCVDistanceImage(), mitk::OclImage::TransferDataToCPU(), mitk::CLUtil::Transform(), mitk::RawImageFileReader::TypedGenerateData(), mitk::FastMarchingTool3D::Update(), mitk::FastMarchingTool::Update(), mitk::USDevice::USDevice(), mitk::USDiPhASImageSource::USDiPhASImageSource(), Valid_ImageExpandedByTimestep_ReturnsTrue(), mitk::pa::Volume::Volume(), and mitk::RTDoseReaderService::~RTDoseReaderService().
|
overrideprotected |
Definition at line 1336 of file mitkImage.cpp.
References mitk::PixelType::GetBitsPerComponent(), mitk::PixelType::GetComponentTypeAsString(), GetDimension(), mitk::PixelType::GetNumberOfComponents(), mitk::PixelType::GetPixelTypeAsString(), mitk::PixelType::GetSize(), m_Dimension, m_ImageDescriptor, mitk::BaseData::m_Initialized, and mitk::BaseData::PrintSelf().
|
virtual |
Set data in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a channel (at least is not smaller than a channel), since there is no chance to check this.
The data is copied to an array managed by the image. If the image shall reference the data, use SetImportChannel with ImportMemoryManagementType set to ReferenceMemory. For importing ITK images use of mitk:: ITKImageImport is recommended.
Definition at line 675 of file mitkImage.cpp.
References CopyMemory, and SetImportChannel().
|
overridevirtual |
Sets a geometry to an image.
Reimplemented from mitk::BaseData.
Definition at line 1321 of file mitkImage.cpp.
References mitk::TimeGeometry::CountTimeSteps(), mitk::TimeGeometry::GetGeometryForTimeStep(), mitk::BaseGeometry::GetImageGeometry(), mitk::BaseData::GetTimeGeometry(), MITK_INFO, and mitk::SlicedData::SetGeometry().
Referenced by mitk::HeightFieldSurfaceClipImageFilter::GenerateOutputInformation().
|
virtual |
Set data in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a channel (at least is not smaller than a channel), since there is no chance to check this.
The data is managed according to the parameter importMemoryManagement.
Definition at line 761 of file mitkImage.cpp.
References AllocateChannelData(), GetChannelData(), IsChannelSet(), IsValidChannel(), m_ImageDescriptor, and m_OffsetTable.
Referenced by SetChannel().
|
virtual |
Set data as slice s at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a slice (at least is not smaller than a slice), since there is no chance to check this.
The data is managed according to the parameter importMemoryManagement.
Definition at line 681 of file mitkImage.cpp.
References AllocateSliceData(), GetSliceData(), IsSliceSet(), IsValidSlice(), m_ImageDescriptor, and m_OffsetTable.
Referenced by SetSlice().
|
virtual |
Set data as volume at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a volume (at least is not smaller than a volume), since there is no chance to check this.
The data is managed according to the parameter importMemoryManagement.
Definition at line 716 of file mitkImage.cpp.
References AllocateVolumeData(), GetVolumeData(), IsValidVolume(), IsVolumeSet(), m_ImageDescriptor, and m_OffsetTable.
Referenced by SetImportVolume(), and SetVolume().
|
virtual |
Definition at line 756 of file mitkImage.cpp.
References CopyMemory, and SetImportVolume().
|
virtual |
Set data as slice s at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a slice (at least is not smaller than a slice), since there is no chance to check this.
The data is copied to an array managed by the image. If the image shall reference the data, use SetImportSlice with ImportMemoryManagementType set to ReferenceMemory. For importing ITK images use of mitk:: ITKImageImport is recommended.
Definition at line 663 of file mitkImage.cpp.
References CopyMemory, and SetImportSlice().
|
virtual |
Set data as volume at time t in channel n. It is in the responsibility of the caller to ensure that the data vector data is really a volume (at least is not smaller than a volume), since there is no chance to check this.
The data is copied to an array managed by the image. If the image shall reference the data, use SetImportVolume with ImportMemoryManagementType set to ReferenceMemory. For importing ITK images use of mitk:: ITKImageImport is recommended.
Definition at line 669 of file mitkImage.cpp.
References CopyMemory, and SetImportVolume().
Referenced by mitk::ContourModelUtils::FillContourInSlice(), Image(), ITKSetVolume(), mitk::BinaryThresholdTool::ITKThresholding(), ITKThresholding(), mitk::BinaryThresholdTool::ITKThresholdingOldBinary(), ITKThresholdingOldBinary(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), and mitk::USImage::USImage().
|
mutableprotected |
Definition at line 688 of file mitkImage.h.
Referenced by AllocateChannelData(), AllocateSliceData(), AllocateVolumeData(), GetChannelData(), GetSliceData(), GetVolumeData(), Initialize(), IsChannelSet(), IsSliceSet(), and IsVolumeSet().
|
protected |
Definition at line 700 of file mitkImage.h.
Referenced by GetData(), and Initialize().
|
protected |
Definition at line 693 of file mitkImage.h.
Referenced by ComputeOffsetTable(), GetChannelData(), GetDimension(), Initialize(), IsValidTimeStep(), and PrintSelf().
|
protected |
Definition at line 695 of file mitkImage.h.
Referenced by AllocateVolumeData(), Clear(), ComputeOffsetTable(), GetChannelData(), GetDimension(), GetDimensions(), GetSliceData(), GetSliceIndex(), GetVolumeData(), GetVolumeIndex(), Image(), Initialize(), IsChannelSet(), IsValidSlice(), IsValidTimeStep(), and IsVolumeSet().
|
mutableprotected |
Definition at line 691 of file mitkImage.h.
Referenced by AllocateChannelData(), AllocateSliceData(), AllocateVolumeData(), GetChannelData(), GetSliceData(), GetVolumeData(), IsChannelSet(), IsSliceSet(), and IsVolumeSet().
|
protected |
Definition at line 697 of file mitkImage.h.
Referenced by AllocateChannelData(), AllocateSliceData(), AllocateVolumeData(), GetChannelData(), GetData(), GetPixelType(), GetPixelValueByIndex(), GetSliceData(), GetVolumeData(), Initialize(), PrintSelf(), SetImportChannel(), SetImportSlice(), and SetImportVolume().
|
protected |
Definition at line 704 of file mitkImage.h.
Referenced by GetCountOfMaxValuedVoxels(), GetCountOfMaxValuedVoxelsNoRecompute(), GetCountOfMinValuedVoxels(), GetCountOfMinValuedVoxelsNoRecompute(), GetScalarValue2ndMax(), GetScalarValue2ndMaxNoRecompute(), GetScalarValue2ndMin(), GetScalarValue2ndMinNoRecompute(), GetScalarValueMax(), GetScalarValueMaxNoRecompute(), GetScalarValueMin(), GetScalarValueMinNoRecompute(), Initialize(), and ~Image().
|
protected |
Definition at line 699 of file mitkImage.h.
Referenced by AllocateChannelData(), AllocateSliceData(), AllocateVolumeData(), ComputeOffsetTable(), GetChannelData(), GetSliceData(), GetVolumeData(), SetImportChannel(), SetImportSlice(), SetImportVolume(), and ~Image().
|
mutableprotected |
Definition at line 690 of file mitkImage.h.
Referenced by AllocateSliceData(), GetChannelData(), GetSliceData(), GetVolumeData(), Initialize(), IsSliceSet(), and IsVolumeSet().
|
mutableprotected |
Definition at line 689 of file mitkImage.h.
Referenced by AllocateSliceData(), AllocateVolumeData(), GetChannelData(), GetSliceData(), GetVolumeData(), Initialize(), IsSliceSet(), and IsVolumeSet().