62 m_sFilePath += pFilePath;
64 m_sSecondFilePath =
"";
69 m_sSecondFilePath += pSecondFilePath;
79 m_pLeftImageRGB24Split = 0;
80 m_pRightImageRGB24Split = 0;
93 if (m_pLeftImageRGB24Split)
94 delete m_pLeftImageRGB24Split;
96 if (m_pRightImageRGB24Split)
97 delete m_pRightImageRGB24Split;
107 return m_bOK ? m_pLeftImage->
width : -1;
112 return m_bOK ? m_pLeftImage->
height : -1;
130 if (m_pLeftImageRGB24Split)
131 delete m_pLeftImageRGB24Split;
139 if (!m_pRightImage->
LoadFromFile(m_sSecondFilePath.c_str()))
147 if (m_pRightImageRGB24Split)
148 delete m_pRightImageRGB24Split;
169 if (ppImages[0]->IsCompatible(m_pLeftImage))
171 else if (ppImages[0]->IsCompatible(m_pLeftImageRGB24Split))
175 printf(
"error: images are not compatible in CBitmapCapture::CaptureImage\n");
181 if (ppImages[1]->IsCompatible(m_pRightImage))
183 else if (ppImages[1]->IsCompatible(m_pRightImageRGB24Split))
187 printf(
"error: images are not compatible in CBitmapCapture::CaptureImage\n");
bool CopyImage(const CByteImage *pInputImage, CByteImage *pOutputImage, const MyRegion *pROI=0, bool bUseSameSize=false)
Copies one CByteImage to another.
ImageType
Enum specifying the supported image types.
bool LoadFromFile(const char *pFileName)
Loads an image from a file.
bool ConvertImage(const CByteImage *pInputImage, CByteImage *pOutputImage, bool bFast=false, const MyRegion *pROI=0)
Converts a grayscale CByteImage to an RGB CByteImage image and vice versa.
CByteImage::ImageType GetType()
CBitmapCapture(const char *pFilePath, const char *pSecondFilePath=NULL)
ImageType type
The type of the image.
int width
The width of the image in pixels.
int height
The height of the image in pixels.
bool CaptureImage(CByteImage **ppImages)
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...