![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for images data type. More...
#include <BaseImage.h>
Public Member Functions | |
| virtual | ~BaseImage ()=0 |
| destructor | |
| virtual eImageBaseType | getImageBaseType () const =0 |
| retrieve image type | |
| virtual ipBool | isGpuImage () const =0 |
| returns true if the image is loaded on GPU | |
| virtual ipBool | isDiskImage () const =0 |
| returns true if the image is a disk one | |
| bool | isInit () const |
| retrieve object initialisation flag | |
| virtual BoolResult | init (const BaseImageGeometry &geometry)=0 |
| image initialization More... | |
| void | setScaleGeometricCalibration (const ipReal32 scale, const std::string &unitStr="") |
| set geometric calibration associated to image by changing only the scale and the unit More... | |
| void | setScaleGeometricCalibration (const ipReal32 xScale, const ipReal32 yScale, const std::string &unitStr="") |
| void | setScaleGeometricCalibration (const ipReal32 xScale, const ipReal32 yScale, const ipReal32 zScale, const std::string &unitStr="") |
| void | setOrigin (const ipReal32 xOrigin, const ipReal32 yOrigin) |
| set geometric calibration associated to image More... | |
| void | setOrigin (const ipReal32 xOrigin, const ipReal32 yOrigin, const ipReal32 zOrigin) |
| virtual eImageAccessMode | getAccessMode () const =0 |
| retrieve image access mode More... | |
| virtual bool | hasRemoteStorage () const |
| method allowing to check whether image is associated to remote data (data with remote storage) More... | |
| bool | hasBinary8BitsStorage () const |
| method allowing to check whether image underlying storage stores binary data with a 8 bit alignment More... | |
| bool | hasByPlanDataAccess () const |
| check whether all plans have contiguous access to full plan data More... | |
| PlanStorageConstPtr | getPlanStorage (const PlanIndex &planIndex) const |
| PlanStoragePtr | getPlanStorage (const PlanIndex &planIndex) |
| const PlanStorageColl3d & | getPlanStorageColl () const |
| std::string | getUserPropertiesStr () const |
| void | setUserPropertiesStr (const std::string &newStrUserProperties) |
| std::string | getChannelName (const ipUInt64 c) const |
| void | setChannelName (const std::string &strName, const ipUInt64 c) |
| bool | minIsBlack () const |
| Returns true if the minimum image value is assigned to black. More... | |
| void | clear () |
| clear of object data | |
Image identifier | |
| const DataIdentifier & | getIdentifier () const |
| retrieve identifier associated to image More... | |
| const DataIdentifierConstPtr | getIdentifierPtr () const |
| retrieve pointer to identifier associated to image More... | |
| const Guid & | getGuid () const |
| access to image guid More... | |
| const std::string & | getName () const |
| access to image name More... | |
Image header | |
| bool | existsHeaderKey (const std::string &key) const |
| check whether a given key exists into header More... | |
| ItemNames | getHeaderKeys () const |
| retrieve header key list More... | |
| const BaseDataItem & | getHeaderItem (const std::string &key) const |
| retrieve a header item given associated key More... | |
| DataItemConstPtr | getHeaderItemPtr (const std::string &key) const |
| retrieve a header item given associated key More... | |
| DataItemMapConstPtr | getHeaderPtr () const |
| retrieve the header item map More... | |
Image Calibration | |
| bool | hasGeometricCalibration () const |
| check whether image is associated to a geometric calibration More... | |
| const GeometricCalibration & | getGeometricCalibration () const |
| retrieve geometric calibration associated to image More... | |
| const GeometricCalibrationConstPtr & | getGeometricCalibrationConstPtr () const |
| retrieve geometric calibration associated to image More... | |
| void | setGeometricCalibration (const GeometricCalibrationConstPtr &pGeometricCalibration) |
| set geometric calibration associated to image More... | |
Image Geometry | |
| const BaseImageGeometry & | getGeometry () const |
| retrieve image geometry More... | |
| ImageGeometryConstPtr | getGeometryPtr () const |
| retrieve image geometry More... | |
| ipUInt64 | getSizeX () const |
| retrieve geometry plan x size More... | |
| ipUInt64 | getSizeY () const |
| retrieve geometry plan y size More... | |
| const VolumeGeometry & | getVolumeGeometry () const |
| retrieve volume geometry (z) size and type More... | |
| const eVolumeGeometryType & | getVolumeGeometryType () const |
| retrieve volume geometry (z) type More... | |
| ipUInt64 | getSizeZ () const |
| retrieve volume geometry (z) size More... | |
| const ColorGeometry & | getColorGeometry () const |
| retrieve color geometry (c) size and type More... | |
| const eColorGeometryType & | getColorGeometryType () const |
| retrieve color geometry (c) type More... | |
| ipUInt64 | getSizeC () const |
| retrieve color geometry (c) size More... | |
| const TemporalGeometry & | getTemporalGeometry () const |
| retrieve temporal geometry (t) size and type More... | |
| const eTemporalGeometryType & | getTemporalGeometryType () const |
| retrieve temporal geometry (t) type More... | |
| ipUInt64 | getSizeT () const |
| retrieve temporal geometry (t) size More... | |
| ipUInt64 | getNbTotPlans () const |
| retrieve total number of plans for geometry More... | |
| bool | isValidPlanIdx (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx) const |
| check whether a given plan index is valid More... | |
| bool | isValidPlanIdx (const PlanIndex &planIdx) const |
| check whether a given plan index is valid More... | |
| const eImageBufferType & | getBufferType () const |
| retrieve image data type More... | |
| const eImageBufferType & | getBufferType (const ipUInt64 tPlanIdx) const |
| retrieve image data type for a given temporal component More... | |
Other methods | |
| void | toGPU (CudaImagePtr pCudaImg) const |
| Returns a copy of the image instance stored on NVidia device(s), specified by the input Cuda image. | |
| CudaImagePtr | toGPU () const |
| Returns a copy of the image instance stored on NVidia device(s) | |
| ipBool | containSameData (const BaseImage &otherImage) const |
| void | setVolumeGeometryType (const eVolumeGeometryType &vType) |
| Setters of geometry types : More... | |
| void | setColorGeometryType (const eColorGeometryType &cType) |
| Returns a copy of the image instance stored on NVidia device(s), specified by the input Cuda image. | |
| void | setTemporalGeometryType (const eTemporalGeometryType &tType) |
| Returns a copy of the image instance stored on NVidia device(s), specified by the input Cuda image. | |
| void | setBufferType (const eImageBufferType &type) |
| Returns a copy of the image instance stored on NVidia device(s), specified by the input Cuda image. | |
Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton | |
| const eSklSrzMode & | getSerializationMode () const |
| retrieve serialization flag for object More... | |
| void | setSerializationMode (const eSklSrzMode &sklSrzMode) const |
| set serialization flag for object | |
| BaseObjectWithSkeleton () | |
| ~BaseObjectWithSkeleton () | |
Public Member Functions inherited from ipsdk::BaseSerializationObject | |
| BaseSerializationObject () | |
| Default constructor. | |
| virtual | ~BaseSerializationObject ()=0 |
| destructor | |
Public Member Functions inherited from ipsdk::BaseDynamicObject | |
| virtual const std::string & | getClassName () const |
| method allowing to retrieve object class name | |
| virtual BaseDynamicObject * | createNew () const =0 |
| method allowing to create new instance of current object type | |
| virtual DynamicObjectPtr | createShared () const =0 |
| method allowing to create new shared instance of current object type | |
| virtual bool | hasCopySupport () const =0 |
| check whether objet has copy support | |
| virtual BaseDynamicObject * | duplicate () const =0 |
| method allowing to duplicate current object More... | |
| virtual DynamicObjectPtr | duplicateShared () const =0 |
| method allowing shared duplication of current object More... | |
| BaseDynamicObject () | |
| virtual | ~BaseDynamicObject ()=0 |
Protected Member Functions | |
| BaseImage () | |
| constructor | |
| BoolResult | initBase (const DataIdentifierConstPtr &pIdentifier, const DataItemMapConstPtr &pHeader, const ImageGeometryPtr &pGeometry, const PlanStorageColl3d &imagePlans) |
| base class initialization method More... | |
| void | resizeBase (const ImageGeometryPtr &pGeometry, const PlanStorageColl3d &imagePlans) |
| resize of image given a new geometry and a new image plan collection More... | |
| virtual void | clearDerived () |
| clear data in derived class | |
| bool | checkForRemoteStorage () const |
| method allowing to check whether some plan storage are associated to remote storage More... | |
| const PlanStorageColl3d & | accessImagePlans () const |
| access to plan storage collection in derived class | |
| PlanStorageColl3d & | accessImagePlans () |
| access to plan storage collection in derived class | |
Protected Member Functions inherited from ipsdk::BaseSerializationObject | |
| virtual BoolResult | write (BaseOArchive &ar) const |
| method allowing to ensure serialization write part for object | |
| virtual BoolResult | read (BaseIArchive &ar) |
| method allowing to ensure serialization read part for object | |
Protected Member Functions inherited from ipsdk::BaseDynamicObject | |
| virtual void | initCtorCopy (const BaseDynamicObject &object) |
| virtual void | copy (const BaseDynamicObject &object) |
| method allowing to copy data from another object | |
Friends | |
| struct | SubImageExtractor |
| struct | ImageStripExtractor |
| struct | ImageTileExtractor |
Additional Inherited Members | |
Static Public Member Functions inherited from ipsdk::BaseSerializationObject | |
| static ipUInt32 | getVersion () |
| method allowing to retrieve class version information for serialization | |
Static Public Member Functions inherited from ipsdk::BaseDynamicObject | |
| static const std::string & | getTypeName () |
| method allowing to retrieve name associated to class | |
Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton | |
| eSklSrzMode | _sklSrzMode |
| serialization flag for object More... | |
Base class for images data type.
|
pure virtual |
image initialization
Implemented in ipsdk::image::SubImage, ipsdk::image::DiskImage, ipsdk::python::PythonImage, ipsdk::image::UserImage, ipsdk::image::MemoryImage, ipsdk::image::CudaImage, and ipsdk::image::DistributedImage.
| const DataIdentifier& ipsdk::image::BaseImage::getIdentifier | ( | ) | const |
retrieve identifier associated to image
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const DataIdentifierConstPtr ipsdk::image::BaseImage::getIdentifierPtr | ( | ) | const |
retrieve pointer to identifier associated to image
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const Guid& ipsdk::image::BaseImage::getGuid | ( | ) | const |
access to image guid
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const std::string& ipsdk::image::BaseImage::getName | ( | ) | const |
access to image name
| ipsdk::image::IPSDKImageException | if isInit() == false |
| bool ipsdk::image::BaseImage::existsHeaderKey | ( | const std::string & | key | ) | const |
check whether a given key exists into header
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ItemNames ipsdk::image::BaseImage::getHeaderKeys | ( | ) | const |
retrieve header key list
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const BaseDataItem& ipsdk::image::BaseImage::getHeaderItem | ( | const std::string & | key | ) | const |
retrieve a header item given associated key
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipsdk::IPSDKBaseDataException | if existsHeaderKey(key) == false |
| DataItemConstPtr ipsdk::image::BaseImage::getHeaderItemPtr | ( | const std::string & | key | ) | const |
retrieve a header item given associated key
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipsdk::IPSDKBaseDataException | if existsHeaderKey(key) == false |
| DataItemMapConstPtr ipsdk::image::BaseImage::getHeaderPtr | ( | ) | const |
retrieve the header item map
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipsdk::IPSDKBaseDataException | if existsHeaderKey(key) == false |
| bool ipsdk::image::BaseImage::hasGeometricCalibration | ( | ) | const |
check whether image is associated to a geometric calibration
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const GeometricCalibration& ipsdk::image::BaseImage::getGeometricCalibration | ( | ) | const |
retrieve geometric calibration associated to image
| ipsdk::image::IPSDKImageException | if hasGeometricCalibration() == false |
| const GeometricCalibrationConstPtr& ipsdk::image::BaseImage::getGeometricCalibrationConstPtr | ( | ) | const |
retrieve geometric calibration associated to image
| ipsdk::image::IPSDKImageException | if isInit() == false |
| void ipsdk::image::BaseImage::setGeometricCalibration | ( | const GeometricCalibrationConstPtr & | pGeometricCalibration | ) |
set geometric calibration associated to image
| ipsdk::image::IPSDKImageException | if isInit() == false |
| void ipsdk::image::BaseImage::setScaleGeometricCalibration | ( | const ipReal32 | scale, |
| const std::string & | unitStr = "" |
||
| ) |
set geometric calibration associated to image by changing only the scale and the unit
| ipsdk::image::IPSDKImageException | if isInit() == false |
set geometric calibration associated to image
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const BaseImageGeometry& ipsdk::image::BaseImage::getGeometry | ( | ) | const |
retrieve image geometry
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ImageGeometryConstPtr ipsdk::image::BaseImage::getGeometryPtr | ( | ) | const |
retrieve image geometry
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BaseImage::getSizeX | ( | ) | const |
retrieve geometry plan x size
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BaseImage::getSizeY | ( | ) | const |
retrieve geometry plan y size
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const VolumeGeometry& ipsdk::image::BaseImage::getVolumeGeometry | ( | ) | const |
retrieve volume geometry (z) size and type
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const eVolumeGeometryType& ipsdk::image::BaseImage::getVolumeGeometryType | ( | ) | const |
retrieve volume geometry (z) type
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BaseImage::getSizeZ | ( | ) | const |
retrieve volume geometry (z) size
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const ColorGeometry& ipsdk::image::BaseImage::getColorGeometry | ( | ) | const |
retrieve color geometry (c) size and type
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const eColorGeometryType& ipsdk::image::BaseImage::getColorGeometryType | ( | ) | const |
retrieve color geometry (c) type
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BaseImage::getSizeC | ( | ) | const |
retrieve color geometry (c) size
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const TemporalGeometry& ipsdk::image::BaseImage::getTemporalGeometry | ( | ) | const |
retrieve temporal geometry (t) size and type
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const eTemporalGeometryType& ipsdk::image::BaseImage::getTemporalGeometryType | ( | ) | const |
retrieve temporal geometry (t) type
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BaseImage::getSizeT | ( | ) | const |
retrieve temporal geometry (t) size
| ipsdk::image::IPSDKImageException | if isInit() == false |
| ipUInt64 ipsdk::image::BaseImage::getNbTotPlans | ( | ) | const |
retrieve total number of plans for geometry
| ipsdk::image::IPSDKImageException | if isInit() == false |
| bool ipsdk::image::BaseImage::isValidPlanIdx | ( | const ipUInt64 | zPlanIdx, |
| const ipUInt64 | cPlanIdx, | ||
| const ipUInt64 | tPlanIdx | ||
| ) | const |
check whether a given plan index is valid
| ipsdk::image::IPSDKImageException | if isInit() == false |
| bool ipsdk::image::BaseImage::isValidPlanIdx | ( | const PlanIndex & | planIdx | ) | const |
check whether a given plan index is valid
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const eImageBufferType& ipsdk::image::BaseImage::getBufferType | ( | ) | const |
retrieve image data type
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const eImageBufferType& ipsdk::image::BaseImage::getBufferType | ( | const ipUInt64 | tPlanIdx | ) | const |
retrieve image data type for a given temporal component
| ipsdk::image::IPSDKImageException | if tPlanIdx >= getSizeT() |
|
pure virtual |
retrieve image access mode
| ipsdk::image::IPSDKImageException | if isInit() == false |
Implemented in ipsdk::python::PythonImage, ipsdk::image::DiskImage, ipsdk::image::DistributedImage, ipsdk::image::UserImage, ipsdk::image::MemoryImage, ipsdk::image::CudaImage, and ipsdk::image::SubImage.
|
virtual |
method allowing to check whether image is associated to remote data (data with remote storage)
| ipsdk::image::IPSDKImageException | if isInit() == false |
Reimplemented in ipsdk::image::DistributedImage, and ipsdk::image::SubImage.
| bool ipsdk::image::BaseImage::hasBinary8BitsStorage | ( | ) | const |
method allowing to check whether image underlying storage stores binary data with a 8 bit alignment
| ipsdk::image::IPSDKImageException | if isInit() == false |
| bool ipsdk::image::BaseImage::hasByPlanDataAccess | ( | ) | const |
check whether all plans have contiguous access to full plan data
| ipsdk::image::IPSDKImageException | if isInit() == false |
| PlanStorageConstPtr ipsdk::image::BaseImage::getPlanStorage | ( | const PlanIndex & | planIndex | ) | const |
retrieve plan storage associated to a given plan index
| ipsdk::image::IPSDKImageException | if isValidPlanIdx(planIndex) == false |
| const PlanStorageColl3d& ipsdk::image::BaseImage::getPlanStorageColl | ( | ) | const |
retrieve plan storage collection
| ipsdk::image::IPSDKImageException | if isInit() == false |
| std::string ipsdk::image::BaseImage::getUserPropertiesStr | ( | ) | const |
retrieve the image properties string
| ipsdk::image::IPSDKImageException | if isInit() == false |
| void ipsdk::image::BaseImage::setUserPropertiesStr | ( | const std::string & | newStrUserProperties | ) |
replace the image properties string
| ipsdk::image::IPSDKImageException | if isInit() == false |
| std::string ipsdk::image::BaseImage::getChannelName | ( | const ipUInt64 | c | ) | const |
retrieve the name of the channel c
| ipsdk::image::IPSDKImageException | if isInit() == false |
| void ipsdk::image::BaseImage::setChannelName | ( | const std::string & | strName, |
| const ipUInt64 | c | ||
| ) |
replace the name of the channel c
| ipsdk::image::IPSDKImageException | if isInit() == false |
| bool ipsdk::image::BaseImage::minIsBlack | ( | ) | const |
Returns true if the minimum image value is assigned to black.
| ipsdk::image::IPSDKImageException | if isInit() == false |
returns true if the image provided as input parameters points to the same data that this image. This is tested by the pointer to the first plan buffer
| void ipsdk::image::BaseImage::setVolumeGeometryType | ( | const eVolumeGeometryType & | vType | ) |
Setters of geometry types :
| ipsdk::image::IPSDKImageException | if isInit() == false |
|
protected |
base class initialization method
|
protected |
resize of image given a new geometry and a new image plan collection
| ipsdk::image::IPSDKImageException | if isInit() == false |
|
protected |
method allowing to check whether some plan storage are associated to remote storage
| ipsdk::image::IPSDKImageException | if isInit() == false |
1.8.14