52 #ifndef __PCL_SharedPixelData_h
53 #define __PCL_SharedPixelData_h
80 using color_space = ColorSpace::value_type;
105 SharedPixelData(
void* handle,
int bitsPerSample,
bool floatSample,
bool complexSample );
126 int bitsPerSample,
bool floatSample,
int colorSpace );
136 : m_handle( x.m_handle )
165 if ( m_handle != x.m_handle )
168 m_handle = x.m_handle;
180 return m_handle == x.m_handle;
199 return m_handle !=
nullptr;
220 void* m_handle =
nullptr;
227 void* Allocate(
size_type sizeInBytes )
const;
228 void Deallocate(
void* )
const;
230 void** GetSharedData()
const;
231 void SetSharedData(
void** ptrToShared );
233 void GetSharedGeometry(
int& width,
int& height,
int& numberOfChannels );
234 void SetSharedGeometry(
int width,
int height,
int numberOfChannels );
236 void GetSharedColor( color_space& colorSpace,
RGBColorSystem& RGBWS );
237 void SetSharedColor( color_space colorSpace,
const RGBColorSystem& RGBWS );
Implements a generic, two-dimensional, shared or local image.
Colorimetrically defined RGB working color space.
Handles transparent, type-independent allocation of local and shared pixel data blocks.
void * Handle() const noexcept
virtual ~SharedPixelData()
SharedPixelData(int width, int height, int numberOfChannels, int bitsPerSample, bool floatSample, int colorSpace)
SharedPixelData(const SharedPixelData &x)
SharedPixelData(void *handle, int bitsPerSample, bool floatSample, bool complexSample)
bool IsShared() const noexcept
SharedPixelData()=default
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept