15 #ifndef __PYIPSDKBASE_PYTHONIMAGE_H__ 16 #define __PYIPSDKBASE_PYTHONIMAGE_H__ 20 #pragma warning (push) 21 #pragma warning (disable : 4251) 25 #include <IPSDKImage/Image/BaseCompleteImage.h> 28 #include <boost/python/numpy.hpp> 29 #include <boost/scoped_ptr.hpp> 43 friend boost::shared_ptr<PythonImage> boost::make_shared<PythonImage>();
63 static void setContiguousStyle(
const bool bCContiguous);
78 const boost::python::numpy::ndarray& pythonArray);
83 BoolResult init(
const PythonImageAccessorPtr& pImageAccessor);
89 BoolResult init(
const PythonImageAccessorPtr& pImageAccessor,
90 const boost::python::numpy::ndarray& pythonArray);
104 bool isBufferOwn()
const;
109 boost::python::numpy::ndarray getArray()
const;
112 ipBool isGpuImage()
const;
115 ipBool isDiskImage()
const;
145 mutable boost::shared_ptr<PythonArray>
_pArray;
172 #pragma warning (pop) 174 #endif // __PYIPSDKBASE_PYTHONIMAGE_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
PythonImageAccessorPtr _pImageAccessor
Definition: PythonImage.h:153
Base class for IPSDK image used through python.
Definition: PythonImage.h:37
specific images for dedicated tasks
Definition: ImageTypes.h:70
boost::python::numpy::ndarray PythonArray
underlying python array type
Definition: PythonImage.h:142
Predefined types for python image management.
#define PYIPSDKBASE_API
Import/Export macro for library PyIPSDKBase.
Definition: PyIPSDKBaseExports.h:25
boost::shared_ptr< PythonCudaImage > PythonCudaImagePtr
Definition: PythonImageTypes.h:44
Predefined types for buffer manipulations.
Base class for image geometry.
Definition: BaseImageGeometry.h:38
HybridBufferPtr _pBuffer
buffer associated to image
Definition: PythonImage.h:139
static const image::eImageType::domain g_imageType
type associated to attribute
Definition: PythonImage.h:48
IPSDKIMAGE_API ImageGeometryPtr geometry(const eImageBufferType &imageBufferType, const ipUInt64 sizeX, const ipUInt64 sizeY, const VolumeGeometry &volumeGeometry, const ColorGeometry &colorGeometry, const TemporalGeometry &temporalGeometry)
create an image geometry
#define IPSDK_DECLARE_SERIAL_WITHOUT_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:79
image::eImageType getImageType() const
retrieve image type
Definition: PythonImage.h:161
eImageType
Enumerate describing image type.
Definition: ImageTypes.h:58
std::vector< PlanStorageColl2d > PlanStorageColl3d
Definition: ImageTypes.h:196
bool ipBool
Base types definition.
Definition: BaseTypes.h:47
static bool g_bCContiguous
Definition: PythonImage.h:149
Definition of import/export macro for library.
boost::shared_ptr< HybridBuffer > HybridBufferPtr
shared pointer to HybridBuffer
Definition: BufferTypes.h:64
Base class for complete images.
Definition: BaseCompleteImage.h:34
boost::shared_ptr< PythonArray > _pArray
underlying python array
Definition: PythonImage.h:145
eImageAccessMode
Image access mode.
Definition: ImageTypes.h:110