Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkSubImageSelector.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef mitkSubImageSelector_h
14
#define mitkSubImageSelector_h
15
16
#include "
mitkBaseData.h
"
17
#include "
mitkImageDataItem.h
"
18
#include "
mitkImageToImageFilter.h
"
19
#include <
MitkCoreExports.h
>
20
21
namespace
mitk
22
{
23
//##Documentation
24
//## @brief Base class of all classes providing access to parts of an image
25
//##
26
//## Base class of all classes providing access to parts of an image, e.g., to
27
//## a slice (mitk::ImageSilceSelector) or a volume at a specific time
28
//## (mitk::ImageTimeSelector). If the input is generated by a ProcessObject,
29
//## only the required data is requested.
30
//## @ingroup Process
31
class
MITKCORE_EXPORT
SubImageSelector
:
public
ImageToImageFilter
32
{
33
public
:
35
mitkClassMacro
(
SubImageSelector
,
ImageToImageFilter
);
36
37
itkFactorylessNewMacro(
Self
);
38
39
itkCloneMacro(
Self
);
40
41
virtual
void
SetPosNr(
int
p);
42
43
SubImageSelector
();
44
45
~
SubImageSelector
()
override
;
46
47
protected
:
48
mitk::Image::ImageDataItemPointer
GetSliceData(
int
s = 0,
int
t = 0,
int
n = 0);
49
mitk::Image::ImageDataItemPointer
GetVolumeData(
int
t = 0,
int
n = 0);
50
mitk::Image::ImageDataItemPointer
GetChannelData(
int
n = 0);
51
52
void
SetSliceItem(
mitk::Image::ImageDataItemPointer
dataItem,
int
s = 0,
int
t = 0,
int
n = 0);
53
void
SetVolumeItem(
mitk::Image::ImageDataItemPointer
dataItem,
int
t = 0,
int
n = 0);
54
void
SetChannelItem(
mitk::Image::ImageDataItemPointer
dataItem,
int
n = 0);
55
};
56
57
}
// namespace mitk
58
59
#endif
mitkImageToImageFilter.h
mitk::SubImageSelector
Base class of all classes providing access to parts of an image.
Definition:
mitkSubImageSelector.h:31
itk::SmartPointer< ImageDataItem >
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition:
mitkBaseDataSource.h:71
MitkCoreExports.h
mitkImageDataItem.h
mitkBaseData.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition:
mitkImageToImageFilter.h:25
src
MITK
Modules
Core
include
mitkSubImageSelector.h
Generated on Wed May 17 2023 16:26:11 for Medical Imaging Interaction Toolkit by
1.8.17