FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
#include <Image.hpp>
Public Member Functions | |
void | createFromImage (Image::pointer image) |
void | create (VectorXui size, DataType type, uint nrOfChannels) |
void | create (uint width, uint height, DataType type, uint nrOfChannels) |
void | create (uint width, uint height, uint depth, DataType type, uint nrOfChannels) |
void | create (VectorXui size, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, const void *const data) |
void | create (uint width, uint height, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, const void *const data) |
void | create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, const void *const data) |
void | create (VectorXui size, DataType type, uint nrOfChannels, const void *const data) |
void | create (uint width, uint height, DataType type, uint nrOfChannels, const void *const data) |
void | create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, const void *const data) |
template<class T > | |
void | create (uint width, uint height, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, std::unique_ptr< T > data) |
template<class T > | |
void | create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, std::unique_ptr< T > data) |
template<class T > | |
void | create (VectorXui, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, std::unique_ptr< T > ptr) |
template<class T > | |
void | create (uint width, uint height, DataType type, uint nrOfChannels, std::unique_ptr< T > ptr) |
template<class T > | |
void | create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, std::unique_ptr< T > ptr) |
template<class T > | |
void | create (VectorXui, DataType type, uint nrOfChannels, std::unique_ptr< T > ptr) |
OpenCLImageAccess::pointer | getOpenCLImageAccess (accessType type, OpenCLDevice::pointer) |
OpenCLBufferAccess::pointer | getOpenCLBufferAccess (accessType type, OpenCLDevice::pointer) |
ImageAccess::pointer | getImageAccess (accessType type) |
~Image () | |
int | getWidth () const |
int | getHeight () const |
int | getDepth () const |
int | getNrOfVoxels () const |
Vector3ui | getSize () const |
uchar | getDimensions () const |
DataType | getDataType () const |
int | getNrOfChannels () const |
Vector3f | getSpacing () const |
void | setSpacing (Vector3f spacing) |
void | setSpacing (float x, float y, float z) |
float | calculateMaximumIntensity () |
float | calculateMinimumIntensity () |
float | calculateAverageIntensity () |
Image::pointer | copy (ExecutionDevice::pointer device) |
Image::pointer | crop (VectorXi offset, VectorXi size, bool allowOutOfBoundsCropping=false) |
void | fill (float value) |
DataBoundingBox | getTransformedBoundingBox () const override |
DataBoundingBox | getBoundingBox () const override |
void | free (ExecutionDevice::pointer device) override |
void | freeAll () override |
![]() | |
SpatialDataObject () | |
SceneGraphNode::pointer | getSceneGraphNode () const |
![]() | |
DataObject () | |
void | setMetadata (std::string name, std::string value) |
void | setMetadata (std::unordered_map< std::string, std::string > metadata) |
std::string | getMetadata (std::string name) const |
std::unordered_map< std::string, std::string > | getMetadata () const |
void | deleteMetadata (std::string name) |
uint64_t | getTimestamp () const |
void | updateModifiedTimestamp () |
virtual | ~DataObject () |
virtual std::string | getNameOfClass () const =0 |
uint64_t | getCreationTimestamp () const |
void | setCreationTimestamp (uint64_t timestamp) |
void | setLastFrame (std::string streamer) |
bool | isLastFrame () |
bool | isLastFrame (std::string streamer) |
std::unordered_set< std::string > | getLastFrame () |
void | setFrameData (std::string name, std::string value) |
std::string | getFrameData (std::string name) |
std::unordered_map< std::string, std::string > | getFrameData () |
void | accessFinished () |
![]() | |
Object () | |
virtual | ~Object () |
Reporter & | getReporter () |
Friends | |
class | ImageAccess |
class | OpenCLBufferAccess |
class | OpenCLImageAccess |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< SpatialDataObject > | pointer |
![]() | |
typedef std::shared_ptr< DataObject > | pointer |
![]() | |
typedef std::shared_ptr< Object > | pointer |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
static std::string | getStaticNameOfClass () |
fast::Image::~Image | ( | ) |
|
protected |
float fast::Image::calculateAverageIntensity | ( | ) |
|
protected |
float fast::Image::calculateMaximumIntensity | ( | ) |
float fast::Image::calculateMinimumIntensity | ( | ) |
Image::pointer fast::Image::copy | ( | ExecutionDevice::pointer | device | ) |
Copy image and put contents to specific device
|
protected |
Copy data to appropriate device
device | |
data |
Setup a 2D image object, but does not allocate any memory
width | |
height | |
type | |
nrOfChannels |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
const void *const | data | ||
) |
Copies 2D data to default device
width | |
height | |
type | |
nrOfChannels | |
data |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
ExecutionDevice::pointer | device, | ||
const void *const | data | ||
) |
Copies 2D data to given device
width | |
height | |
type | |
nrOfChannels | |
device | |
data |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
ExecutionDevice::pointer | device, | ||
std::unique_ptr< T > | data | ||
) |
Moves the 2D data pointer to the given device
width | |
height | |
type | |
nrOfChannels | |
device | |
data |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
std::unique_ptr< T > | ptr | ||
) |
Moves the 2D data pointer to the default device
width | |
height | |
type | |
nrOfChannels | |
data |
Setup a 3D image object, but does not allocate any memory.
width | |
height | |
depth | |
type | |
nrOfChannels |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
uint | depth, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
const void *const | data | ||
) |
Copies 3D data to default device
width | |
height | |
depth | |
type | |
nrOfChannels | |
data |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
uint | depth, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
ExecutionDevice::pointer | device, | ||
const void *const | data | ||
) |
Copies 3D data to given device
width | |
height | |
depth | |
type | |
nrOfChannels | |
device | |
data |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
uint | depth, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
ExecutionDevice::pointer | device, | ||
std::unique_ptr< T > | data | ||
) |
Moves the 3D pointer to the given device
width | |
height | |
depth | |
type | |
nrOfChannels | |
device | |
data |
void fast::Image::create | ( | uint | width, |
uint | height, | ||
uint | depth, | ||
DataType | type, | ||
uint | nrOfChannels, | ||
std::unique_ptr< T > | ptr | ||
) |
Moves the 3D data pointer to the default device
width | |
height | |
depth | |
type | |
nrOfChannels | |
data |
Setup a 2D/3D image object, but does not allocate any memory
size | |
type | |
nrOfChannels |
void fast::Image::create | ( | VectorXui | size, |
DataType | type, | ||
uint | nrOfChannels, | ||
const void *const | data | ||
) |
Copies 2D/3D data to default device
size | |
type | |
nrOfChannels | |
data |
void fast::Image::create | ( | VectorXui | size, |
DataType | type, | ||
uint | nrOfChannels, | ||
ExecutionDevice::pointer | device, | ||
const void *const | data | ||
) |
Copies 2D/3D data to given device
size | |
type | |
nrOfChannels | |
device | |
data |
void fast::Image::create | ( | VectorXui | size, |
DataType | type, | ||
uint | nrOfChannels, | ||
ExecutionDevice::pointer | device, | ||
std::unique_ptr< T > | ptr | ||
) |
Moves the 2D/3D pointer to the given device
T |
type | |
nrOfChannels | |
device | |
ptr |
void fast::Image::create | ( | VectorXui | size, |
DataType | type, | ||
uint | nrOfChannels, | ||
std::unique_ptr< T > | ptr | ||
) |
Moves the 2D/3D data pointer to the default device
T |
type | |
nrOfChannels | |
ptr |
void fast::Image::createFromImage | ( | Image::pointer | image | ) |
Setup an image object with the same size, data type and pixel spacing as the given image. Does not allocate any memory.
image | to copy size and pixel spacing from |
Image::pointer fast::Image::crop | ( | VectorXi | offset, |
VectorXi | size, | ||
bool | allowOutOfBoundsCropping = false |
||
) |
Create a new image which is a cropped version of this image
void fast::Image::fill | ( | float | value | ) |
Fill entire image with a value
value |
|
protected |
|
overridevirtual |
Implements fast::DataObject.
|
overridevirtual |
Implements fast::DataObject.
|
overridevirtual |
Reimplemented from fast::SpatialDataObject.
|
protected |
DataType fast::Image::getDataType | ( | ) | const |
int fast::Image::getDepth | ( | ) | const |
uchar fast::Image::getDimensions | ( | ) | const |
int fast::Image::getHeight | ( | ) | const |
ImageAccess::pointer fast::Image::getImageAccess | ( | accessType | type | ) |
int fast::Image::getNrOfChannels | ( | ) | const |
int fast::Image::getNrOfVoxels | ( | ) | const |
OpenCLBufferAccess::pointer fast::Image::getOpenCLBufferAccess | ( | accessType | type, |
OpenCLDevice::pointer | |||
) |
OpenCLImageAccess::pointer fast::Image::getOpenCLImageAccess | ( | accessType | type, |
OpenCLDevice::pointer | |||
) |
Vector3ui fast::Image::getSize | ( | ) | const |
Vector3f fast::Image::getSpacing | ( | ) | const |
|
overridevirtual |
Reimplemented from fast::SpatialDataObject.
int fast::Image::getWidth | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
Give data to appropriate device
device | |
data |
void fast::Image::setSpacing | ( | float | x, |
float | y, | ||
float | z | ||
) |
void fast::Image::setSpacing | ( | Vector3f | spacing | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |