CRotateImage.h 753 B

1234567891011121314151617
  1. #include "CImageBasis.h"
  2. class CRotateImage: public CImageBasis
  3. {
  4. public:
  5. CImageBasis *ImageTMP, *ImageOrg;
  6. bool doflip;
  7. CRotateImage(std::string _image, bool _flip = false) : CImageBasis(_image) {ImageTMP = NULL; ImageOrg = NULL; doflip = _flip;};
  8. CRotateImage(uint8_t* _rgb_image, int _channels, int _width, int _height, int _bpp, bool _flip = false) : CImageBasis(_rgb_image, _channels, _width, _height, _bpp) {ImageTMP = NULL; ImageOrg = NULL; doflip = _flip;};
  9. CRotateImage(CImageBasis *_org, CImageBasis *_temp, bool _flip = false);
  10. void Rotate(float _angle);
  11. void Rotate(float _angle, int _centerx, int _centery);
  12. void Translate(int _dx, int _dy);
  13. void Mirror();
  14. };