IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
InOutImageYStripColor2d.h
1 // InOutImageYStripColor2d.h:
3 // --------------------------
4 //
14 
15 #ifndef __IPSDKIMAGE_INOUTIMAGEYSTRIPCOLOR2D_H__
16 #define __IPSDKIMAGE_INOUTIMAGEYSTRIPCOLOR2D_H__
17 
18 #include <IPSDKImage/Fragment/Strip/YStripColor2d/BaseImageYStripColor2d.h>
19 
20 namespace ipsdk {
21 namespace image {
22 
25 
27 {
28  // declare serial class
30 
31  // declare in/out data
33 
34  // friend class for protected members access
35  friend struct ImageStripExtractor;
36 
37 // predefined public types
38 public:
39  // Image support type
40  typedef BaseImage ImageType;
41 
42 public:
48 
49 // methods
50 public:
51  //-----------------------------------
54  //-----------------------------------
55 
62  BoolResult readFromImage() const;
63 
72  BoolResult writeToImage();
74 
80  HybridBuffer& getBuffer(const ipUInt64 cPlanIdx);
81 
82 protected:
86  void init(const ipUInt64 zPlanIdx,
87  const ipUInt64 tPlanIdx,
88  const ColorGeometry& colorGeometry,
89  const ipUInt64 stripStartOffsetY,
90  const ipUInt64 stripSizeY,
91  const eStripAllocationType& stripAllocationType,
92  const eStripParsingDirection& stripParsingDirection,
93  const PlanStorageColl1d& colorColl,
94  const DataIdentifierConstPtr& pImageIdentifier,
95  const DataItemMapConstPtr& pImageHeader);
96 
98  void createSubStrip(const ipUInt64 zPlanIdx,
99  const ipUInt64 cPlanIdx,
100  const ipUInt64 tPlanIdx,
101  const ipUInt64 stripStartOffsetY,
102  const ipUInt64 stripSizeY,
103  const eStripAllocationType& stripAllocationType,
104  const eStripParsingDirection& stripParsingDirection,
105  const PlanStoragePtr& pPlanStorage,
106  const DataIdentifierConstPtr& pImageIdentifier,
107  const DataItemMapConstPtr& pImageHeader,
108  ImageYStrip2dPtr& pImageYStrip2d) const;
109 
110 // attributes
111 protected:
112 
113 };
114 
117 
118 inline HybridBuffer&
120 {
121  return accessBuffer(cPlanIdx);
122 }
123 
126 
127 } // end of namespace image
128 } // end of namespace ipsdk
129 
130 #endif // __IPSDKIMAGE_INOUTIMAGEYSTRIPCOLOR2D_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
Input and output class for color image 2d strip with splitting along Y axis.
Definition: InOutImageYStripColor2d.h:26
#define IPSDK_DECLARE_INOUT_DATA()
macro allowing to declare an in/out data
Definition: DataStatusHdrMacros.h:120
eStripAllocationType
Enumerate describing image strip allocation policy.
Definition: ImageStripTypes.h:88
Base class for color image 2d strip with splitting along Y axis.
Definition: BaseImageYStripColor2d.h:33
#define IPSDK_DECLARE_SERIAL_WITHOUT_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:79
const HybridBuffer & accessBuffer(const ipUInt64 cPlanIdx) const
access to strip full buffer
Structure used to extract image strips from an image.
Definition: ImageStripExtractor.h:31
boost::shared_ptr< const DataItemMap > DataItemMapConstPtr
shared pointer to const DataItemMap
Definition: DataItemTypes.h:170
#define IPSDKIMAGE_API
Import/Export macro for library IPSDKImage.
Definition: IPSDKImageExports.h:27
boost::shared_ptr< BasePlanStorage > PlanStoragePtr
shared pointer to image plan storage
Definition: PlanStorageTypes.h:55
eStripParsingDirection
Enumerate describing strip parsing direction.
Definition: ImageStripTypes.h:72
Class encapsulating color geometryThis class allows to define geometry color size and type (grey...
Definition: ColorGeometry.h:35
boost::shared_ptr< const DataIdentifier > DataIdentifierConstPtr
shared pointer to const data identifier
Definition: DataIdentifierTypes.h:31
Class allowing to encapsulate an hybrid form of buffer.
Definition: HybridBuffer.h:52
std::vector< PlanStoragePtr > PlanStorageColl1d
Definition: ImageTypes.h:184
Base class for images data type.
Definition: BaseImage.h:43
boost::shared_ptr< BaseImageYStrip2d > ImageYStrip2dPtr
Definition: ImageStripTypes.h:117
HybridBuffer & getBuffer(const ipUInt64 cPlanIdx)
retrieve strip full buffer
Definition: InOutImageYStripColor2d.h:119