71 if (pFirstFilePathBaseRight)
131 bool bLookForFigures =
false;
134 for (
int i = nLengthMinusOne; i >= 0; i--)
136 if (pFirstFilePathLeft[i] ==
'.')
138 bLookForFigures =
true;
142 else if (bLookForFigures)
144 if (pFirstFilePathLeft[i] <
'0' || pFirstFilePathLeft[i] >
'9')
149 n = atoi(pFirstFilePathLeft + i + 1);
164 bool bLookForFigures =
false;
167 for (
int i = nLengthMinusOne; i >= 0; i--)
169 if (pFirstFilePathRight[i] ==
'.')
170 bLookForFigures =
true;
171 else if (bLookForFigures)
173 if (pFirstFilePathRight[i] <
'0' || pFirstFilePathRight[i] >
'9')
178 if (
n != atoi(pFirstFilePathRight + i + 1))
219 printf(
"error: read image is not compatible in CBitmapSequenceCapture::CaptureImage\n");
233 printf(
"error: read image is not compatible in CBitmapSequenceCapture::CaptureImage (right image)\n");
std::string m_sFilePathBaseRight
bool IsCompatible(const CByteImage *pImage) const
Checks whether two images are compatible or not.
int width
The width of the image in pixels.
CBitmapSequenceCapture(const char *pFilePathBase, const char *pSecondFilePathBase=NULL)
bool LoadFromFile(const char *pFileName)
Loads an image from a file.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
CByteImage * m_pLeftImage
bool CopyImage(const CByteImage *pInputImage, CByteImage *pOutputImage, const MyRegion *pROI=0, bool bUseSameSize=false)
Copies one CByteImage to another.
int height
The height of the image in pixels.
std::string m_sFirstFilePathLeft
std::string m_sFilePathBaseLeft
ImageType
Enum specifying the supported image types.
std::string m_sFileExtention
std::string m_sFirstFilePathRight
void Rewind()
Set the image counter to the first image.
ImageType type
The type of the image.
CByteImage * m_pRightImage
CByteImage::ImageType GetType()
int nFirstImage
Number of the First Image.
bool CaptureImage(CByteImage **ppImages)
~CBitmapSequenceCapture()