IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Types | Protected Member Functions | Friends | List of all members
ipsdk::image::InputImageXStrip2dWithKernel Class Reference

Input class for image 2d strip with splitting along X axis associated to a kernel. More...

#include <InputImageXStrip2dWithKernel.h>

Inheritance diagram for ipsdk::image::InputImageXStrip2dWithKernel:
ipsdk::image::BaseImageXStrip2dWithKernel ipsdk::image::BaseImageStrip ipsdk::image::BaseImageFragment ipsdk::BaseObjectWithSkeleton ipsdk::BaseIOData ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject

Public Types

typedef const BaseImage ImageType
 
typedef InputImageXStrip2d BorderValueType
 
typedef boost::shared_ptr< InputImageXStrip2dBorderStorageType
 

Public Member Functions

Constructors and destructors
 InputImageXStrip2dWithKernel ()
 
 ~InputImageXStrip2dWithKernel ()
 
Strip read and write access
BoolResult readFromImage () const
 read image strip data from image storage More...
 
- Public Member Functions inherited from ipsdk::image::BaseImageXStrip2dWithKernel
eImageStripType getImageStripType () const
 retrieve image strip type
 
const eImageBufferTypegetBufferType () const
 retrieve image buffer type More...
 
 BaseImageXStrip2dWithKernel ()
 
virtual ~BaseImageXStrip2dWithKernel ()=0
 
ipUInt64 getKernelSizeX () const
 retrieve full kernel X size associated to object More...
 
ipUInt64 getKernelSizeY () const
 retrieve full kernel Y size associated to object More...
 
ipUInt64 getStartingKernelSizeX () const
 retrieve starting kernel X size associated to object More...
 
ipUInt64 getEndingKernelSizeX () const
 retrieve ending kernel X size associated to object More...
 
ipUInt64 getStartingKernelSizeY () const
 retrieve starting kernel Y size associated to object More...
 
ipUInt64 getEndingKernelSizeY () const
 retrieve ending kernel Y size associated to object More...
 
const eStripParsingDirectiongetStripParsingDirection () const
 access to used strip parsing direction More...
 
ipUInt64 getSizeY () const
 retrieve image size along x direction More...
 
ipUInt64 getStripStartOffsetX () const
 retrieve strip start offset for data along x direction More...
 
ipUInt64 getStripSizeX () const
 retrieve strip data size along x direction More...
 
ipUInt64 getImageSizeX () const
 retrieve full image size along x direction More...
 
const ipUInt64 getFullStripSize () const
 retrieve image strip size (number of pixels) More...
 
const ipUInt64 getPlanStripSize () const
 retrieve xy plan image strip size (number of pixels) More...
 
const ipUInt64 getStripNbPlans () const
 retrieve number of xy plans associated to strip More...
 
ipUInt64 getStartingSizeX () const
 retrieve number of provided starting columns (number of additional provided columns for kernel X size processing) More...
 
ipUInt64 getNbMissingStartingCols () const
 retrieve number of missing starting columns (number of missing columns for kernel X size processing) More...
 
ipUInt64 getEndingSizeX () const
 retrieve number of provided ending columns (number of additional provided rows for kernel X size processing) More...
 
ipUInt64 getNbMissingEndingCols () const
 retrieve number of missing ending columns (number of missing columns for kernel X size processing) More...
 
ipUInt64 getZPlanIdx () const
 retrieve z plan index for image strip in full image More...
 
ipUInt64 getCPlanIdx () const
 retrieve c plan index for image strip in full image More...
 
ipUInt64 getTPlanIdx () const
 retrieve t plan index for image strip in full image More...
 
ImageXStrip2dConstPtr getStartingStripPtr () const
 retrieve starting image strip More...
 
ImageXStrip2dConstPtr getMainStripPtr () const
 retrieve main image strip More...
 
ImageXStrip2dConstPtr getEndingStripPtr () const
 retrieve ending image strip More...
 
- Public Member Functions inherited from ipsdk::image::BaseImageStrip
eImageFragmentType getImageFragmentType () const
 retrieve image fragment type
 
const eStripAllocationTypegetStripAllocationType () const
 retrieve flag indicating used strip allocation type More...
 
virtual ipBool fromDisk () const
 returns true if the strip is extracted from a disk image
 
 BaseImageStrip ()
 
virtual ~BaseImageStrip ()=0
 
- Public Member Functions inherited from ipsdk::image::BaseImageFragment
virtual bool isInput () const =0
 retrieve fragment input state More...
 
virtual bool isOutput () const =0
 retrieve fragment output state More...
 
bool isInOut () const
 retrieve fragment in/out state
 
bool isInit () const
 retrieve object initialization flag
 
eDataAccessMode getDataAccessMode () const
 retrieve flag indicating access mode for an image fragment data More...
 
bool hasLocalDataAccess () const
 retrieve flag indicating whether fragment data can locally be accessed More...
 
bool isBufferInit () const
 check whether strip buffer has been initialized More...
 
BoolResult initBuffer ()
 method allowing to initialize strip buffer More...
 
void clearBuffer ()
 method allowing to clear strip buffer More...
 
bool isBufferSyncInput () const
 retrieve flag indicating whether buffer has been synchronised from image (read from image storage) More...
 
bool isBufferSyncOutput () const
 retrieve flag indicating whether buffer has been synchronised to image (write to image storage) More...
 
void clear ()
 clear object initialization data
 
 BaseImageFragment ()
 
virtual ~BaseImageFragment ()=0
 
const GuidgetGuid () const
 access to image guid More...
 
const std::string & getName () const
 access to image name More...
 
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 BaseDataItemgetHeaderItem (const std::string &key) const
 retrieve a header item given associated key More...
 
- Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton
const eSklSrzModegetSerializationMode () 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 BaseDynamicObjectcreateNew () 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 BaseDynamicObjectduplicate () 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
 
- Public Member Functions inherited from ipsdk::BaseIOData
virtual eIOStatus getIOStatus () const =0
 retrieve data input/output status
 
 BaseIOData ()
 
virtual ~BaseIOData ()=0
 

Protected Member Functions

void init (const ipUInt64 startingKernelSizeX, const ipUInt64 endingKernelSizeX, const ipUInt64 startingKernelSizeY, const ipUInt64 endingKernelSizeY, const ImageXStrip2dConstPtr &pStartingStrip, const ImageXStrip2dConstPtr &pMainStrip, const ImageXStrip2dConstPtr &pEndingStrip, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 initialization of object More...
 
- Protected Member Functions inherited from ipsdk::image::BaseImageXStrip2dWithKernel
void initBase (const ipUInt64 startingKernelSizeX, const ipUInt64 endingKernelSizeX, const ipUInt64 startingKernelSizeY, const ipUInt64 endingKernelSizeY, const ImageXStrip2dPtr &pStartingStrip, const ImageXStrip2dPtr &pMainStrip, const ImageXStrip2dPtr &pEndingStrip, const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 base class initialization More...
 
bool isBufferInitDerived () const
 check whether strip buffer has been initialized in derived class
 
BoolResult initBufferDerived ()
 method allowing to initialize strip buffer in derived class
 
void clearBufferDerived ()
 method allowing to clear strip buffer in derived class
 
eDataAccessMode retrieveAccessMode () const
 method allowing to retrieve data access mode associated to fragment
 
void clearDerived ()
 clear function defined in derived class
 
BoolResult readDataDerived () const
 read image strip data from image storage More...
 
BoolResult writeDataDerived ()
 write image strip data to image storage More...
 
- Protected Member Functions inherited from ipsdk::image::BaseImageStrip
void initBase (const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader, const eStripAllocationType &stripAllocationType)
 base class initialization method
 
- Protected Member Functions inherited from ipsdk::image::BaseImageFragment
void initBase (const DataIdentifierConstPtr &pImageIdentifier, const DataItemMapConstPtr &pImageHeader)
 base class initialization method
 
BoolResult readData () const
 read image strip data from image storage More...
 
BoolResult writeData ()
 write image strip data to image storage More...
 
- 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 ImageStripExtractor
 

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
 
- Static Public Attributes inherited from ipsdk::image::BaseImageXStrip2dWithKernel
static const eImageStripType::domain g_imageStripType = eImageStripType::eIST_X2dWithKernel
 image strip type
 
- Static Public Attributes inherited from ipsdk::image::BaseImageStrip
static const eImageFragmentType::domain g_imageFragmentType = eImageFragmentType::eIFT_ImageStrip
 image strip type
 
- Protected Attributes inherited from ipsdk::image::BaseImageStrip
eStripAllocationType _stripAllocationType
 flag indicating used strip allocation type
 
- Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton
eSklSrzMode _sklSrzMode
 serialization flag for object More...
 

Detailed Description

Input class for image 2d strip with splitting along X axis associated to a kernel.

Author
H. Delestre
Date
2015/08/31

Member Function Documentation

◆ readFromImage()

BoolResult ipsdk::image::InputImageXStrip2dWithKernel::readFromImage ( ) const

read image strip data from image storage

Exceptions
ipsdk::image::IPSDKImageExceptionif isBufferInit() == false
ipsdk::image::IPSDKImageExceptionif hasLocalDataAccess() == false
Returns
false in case of failure

◆ init()

void ipsdk::image::InputImageXStrip2dWithKernel::init ( const ipUInt64  startingKernelSizeX,
const ipUInt64  endingKernelSizeX,
const ipUInt64  startingKernelSizeY,
const ipUInt64  endingKernelSizeY,
const ImageXStrip2dConstPtr pStartingStrip,
const ImageXStrip2dConstPtr pMainStrip,
const ImageXStrip2dConstPtr pEndingStrip,
const DataIdentifierConstPtr pImageIdentifier,
const DataItemMapConstPtr pImageHeader 
)
protected

initialization of object

Note
pStartingStrip may be null, in this case no starting data are provided (case of first rows of data in 2d image)
pEndingStrip may be null, in this case no ending data are provided (case of last rows of data in 2d image)
Exceptions
ipsdk::image::IPSDKImageExceptionif pMainStrip.get() == 0
ipsdk::image::IPSDKImageExceptionif pMainStrip.isInit() == false

The documentation for this class was generated from the following file: