![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for image accessors. More...
#include <BaseImageAccessor.h>
Public Member Functions | |
| bool | isInit () const |
| retrieve object initialisation flag | |
| const eImageAccessMode & | getAccessMode () const |
| retrieve user image access mode More... | |
| const BaseImageGeometry & | getGeometry () const |
| retrieve geometry associated to image file More... | |
| const GeometricCalibrationConstPtr & | getGeometricCalibrationConstPtr () const |
| retrieve geometric calibration associated to image More... | |
| virtual bool | hasBinary8BitsStorage () const =0 |
| method allowing to check whether image underlying storage stores binary data with a 8 bit alignment More... | |
| BoolResult | resize (const BaseImageGeometry &imageGeometry) |
| resize image file given a geometry More... | |
| void | clear () |
| clear of object data | |
Constructors and destructors | |
| BaseImageAccessor () | |
| virtual | ~BaseImageAccessor ()=0 |
| bool | isValidPlanIdx (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx) const |
| bool | isValidPlanIdx (const PlanIndex &planIdx) const |
| BoolResult | readRaw (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipUInt64 pixelStartOffset, const ipUInt64 nbPixels, void *pData) const |
| read raw data segment from file More... | |
| BoolResult | readRaw (const PlanIndex &planIdx, const ipUInt64 pixelStartOffset, const ipUInt64 nbPixels, void *pData) const |
| read raw data segment from file More... | |
| BoolResult | writeRaw (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipUInt64 pixelStartOffset, const ipUInt64 nbPixels, const void *pData) |
| write raw data segment to file More... | |
| BoolResult | writeRaw (const PlanIndex &planIdx, const ipUInt64 pixelStartOffset, const ipUInt64 nbPixels, const void *pData) |
| write raw data segment to file More... | |
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 | |
| virtual std::string | getImageInfoStr () const =0 |
| retrieve image information string in derived class More... | |
| ImageGeometryPtr | getGeometryPtr () |
| retrieve geometry pointer associated to user image More... | |
| void | initBase (const eImageAccessMode &accessMode, const BaseImageGeometry &geometry, const GeometricCalibrationConstPtr &pGeometricCalibration) |
| base class initialization method More... | |
| virtual BoolResult | resizeData (const BaseImageGeometry &geometry)=0 |
| resize user image given a geometry More... | |
| virtual BoolResult | readRawData (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipUInt64 pixelsStartOffset, const ipUInt64 nbPixels, void *pData) const =0 |
| read row data segment from user image More... | |
| virtual BoolResult | writeRawData (const ipUInt64 zPlanIdx, const ipUInt64 cPlanIdx, const ipUInt64 tPlanIdx, const ipUInt64 pixelsStartOffset, const ipUInt64 nbPixels, const void *pData)=0 |
| write row data segment to user image More... | |
| virtual void | clearDerived ()=0 |
| clear data 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 | |
Protected Attributes | |
| eImageAccessMode | _accessMode |
| file access mode associated to manager | |
| ImageGeometryPtr | _pGeometry |
| geometry associated to file | |
| GeometricCalibrationConstPtr | _pGeometricCalibration |
| geometric calibration associated to image | |
| bool | _bInit |
| object initialization flag | |
Friends | |
| class | DiskImage |
| class | DiskPlanStorage |
| class | UserImage |
| class | UserPlanStorage |
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 | |
Base class for image accessors.
| const eImageAccessMode& ipsdk::image::BaseImageAccessor::getAccessMode | ( | ) | const |
retrieve user image access mode
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const BaseImageGeometry& ipsdk::image::BaseImageAccessor::getGeometry | ( | ) | const |
retrieve geometry associated to image file
| ipsdk::image::IPSDKImageException | if isInit() == false |
| const GeometricCalibrationConstPtr& ipsdk::image::BaseImageAccessor::getGeometricCalibrationConstPtr | ( | ) | const |
retrieve geometric calibration associated to image
| ipsdk::image::IPSDKImageException | if isInit() == false |
|
pure virtual |
method allowing to check whether image underlying storage stores binary data with a 8 bit alignment
| ipsdk::image::IPSDKImageException | if isInit() == false |
Implemented in ipsdk::python::PythonImageAccessor, ipsdk::image::file::Im6ImageFile, ipsdk::image::file::RawImageFile, ipsdk::image::AutoDiskImageAccessor, ipsdk::image::MultiFileDiskImageAccessor, and ipsdk::image::file::TiffImageFile.
| bool ipsdk::image::BaseImageAccessor::isValidPlanIdx | ( | const ipUInt64 | zPlanIdx, |
| const ipUInt64 | cPlanIdx, | ||
| const ipUInt64 | tPlanIdx | ||
| ) | const |
check whether plan indexes are valid given geometry
| ipsdk::image::IPSDKImageException | if isInit() == false |
| bool ipsdk::image::BaseImageAccessor::isValidPlanIdx | ( | const PlanIndex & | planIdx | ) | const |
check whether plan indexes are valid given geometry
| ipsdk::image::IPSDKImageException | if isInit() == false |
| BoolResult ipsdk::image::BaseImageAccessor::resize | ( | const BaseImageGeometry & | imageGeometry | ) |
resize image file given a geometry
| ipsdk::image::IPSDKImageException | if getAccessMode() != eImageAccessMode::eIAM_Resize |
| BoolResult ipsdk::image::BaseImageAccessor::readRaw | ( | const ipUInt64 | zPlanIdx, |
| const ipUInt64 | cPlanIdx, | ||
| const ipUInt64 | tPlanIdx, | ||
| const ipUInt64 | pixelStartOffset, | ||
| const ipUInt64 | nbPixels, | ||
| void * | pData | ||
| ) | const |
read raw data segment from file
| zPlanIdx | z plan index for data access |
| cPlanIdx | c plan index for data access |
| tPlanIdx | t plan index for data access |
| pixelStartOffset | pixel start offset for data in file |
| nbPixels | number of pixels to be processed |
| pData | pointer to buffer filed from image file data |
| ipsdk::image::IPSDKImageException | if isValidPlanIdx(zPlanIdx, cPlanIdx, tPlanIdx) == false |
| BoolResult ipsdk::image::BaseImageAccessor::readRaw | ( | const PlanIndex & | planIdx, |
| const ipUInt64 | pixelStartOffset, | ||
| const ipUInt64 | nbPixels, | ||
| void * | pData | ||
| ) | const |
read raw data segment from file
| zPlanIdx | z plan index for data access |
| cPlanIdx | c plan index for data access |
| tPlanIdx | t plan index for data access |
| pixelStartOffset | pixel start offset for data in file |
| nbPixels | number of pixels to be processed |
| pData | pointer to buffer filed from image file data |
| ipsdk::image::IPSDKImageException | if isValidPlanIdx(zPlanIdx, cPlanIdx, tPlanIdx) == false |
| BoolResult ipsdk::image::BaseImageAccessor::writeRaw | ( | const ipUInt64 | zPlanIdx, |
| const ipUInt64 | cPlanIdx, | ||
| const ipUInt64 | tPlanIdx, | ||
| const ipUInt64 | pixelStartOffset, | ||
| const ipUInt64 | nbPixels, | ||
| const void * | pData | ||
| ) |
write raw data segment to file
| zPlanIdx | z plan index for data access |
| cPlanIdx | c plan index for data access |
| tPlanIdx | t plan index for data access |
| pixelStartOffset | pixel start offset for data in file |
| nbPixels | number of pixels to be processed |
| pData | pointer to buffer used to write image file data |
| ipsdk::image::IPSDKImageException | if isValidPlanIdx(zPlanIdx, cPlanIdx, tPlanIdx) == false |
| ipsdk::image::IPSDKImageException | if getAccessMode() == eImageAccessMode::eIAM_Read |
| BoolResult ipsdk::image::BaseImageAccessor::writeRaw | ( | const PlanIndex & | planIdx, |
| const ipUInt64 | pixelStartOffset, | ||
| const ipUInt64 | nbPixels, | ||
| const void * | pData | ||
| ) |
write raw data segment to file
| zPlanIdx | z plan index for data access |
| cPlanIdx | c plan index for data access |
| tPlanIdx | t plan index for data access |
| pixelStartOffset | pixel start offset for data in file |
| nbPixels | number of pixels to be processed |
| pData | pointer to buffer used to write image file data |
| ipsdk::image::IPSDKImageException | if isValidPlanIdx(zPlanIdx, cPlanIdx, tPlanIdx) == false |
| ipsdk::image::IPSDKImageException | if getAccessMode() == eImageAccessMode::eIAM_Read |
|
protectedpure virtual |
retrieve image information string in derived class
| ipsdk::image::IPSDKImageException | if isInit() == false |
Implemented in ipsdk::image::BaseUserImageAccessor, and ipsdk::image::BaseDiskImageAccessor.
|
protected |
retrieve geometry pointer associated to user image
| ipsdk::image::IPSDKImageException | if isInit() == false |
|
protected |
base class initialization method
| accessMode | read/write/resize access mode for user image |
| geometry | underlying geometry for image |
|
protectedpure virtual |
resize user image given a geometry
Implemented in ipsdk::image::file::TiffImageFile, ipsdk::image::file::RawImageFile, ipsdk::image::file::Im6ImageFile, ipsdk::python::PythonImageAccessor, ipsdk::image::AutoDiskImageAccessor, and ipsdk::image::MultiFileDiskImageAccessor.
|
protectedpure virtual |
read row data segment from user image
| zPlanIdx | z plan index for data access |
| cPlanIdx | c plan index for data access |
| tPlanIdx | t plan index for data access |
| pixelsStartOffset | pixel start offset for data in user image |
| nbPixels | number of pixels to be processed |
| pData | pointer to buffer filed from user image data |
Implemented in ipsdk::image::file::TiffImageFile, ipsdk::image::file::RawImageFile, ipsdk::image::BaseUserImageAccessor, ipsdk::image::file::Im6ImageFile, ipsdk::python::PythonImageAccessor, ipsdk::image::AutoDiskImageAccessor, and ipsdk::image::MultiFileDiskImageAccessor.
|
protectedpure virtual |
write row data segment to user image
| zPlanIdx | z plan index for data access |
| cPlanIdx | c plan index for data access |
| tPlanIdx | t plan index for data access |
| pixelsStartOffset | pixel start offset for data in user image |
| nbPixels | number of pixels to be processed |
| pData | pointer to buffer used to write user image data |
Implemented in ipsdk::image::file::TiffImageFile, ipsdk::image::BaseUserImageAccessor, ipsdk::image::file::RawImageFile, ipsdk::image::file::Im6ImageFile, ipsdk::python::PythonImageAccessor, ipsdk::image::AutoDiskImageAccessor, and ipsdk::image::MultiFileDiskImageAccessor.
1.8.14