OSDN Git Service

cache
[psychlops/cpp.git] / psychlops / core / graphic / psychlops_g_image.h
index 6289e84..6401517 100644 (file)
@@ -24,7 +24,10 @@ namespace cv{ class Mat; }
 
 namespace Psychlops {
 
-namespace IMAGE_FORMATS {
+namespace IMAGE_FORMATS {\r
+       enum FILE_EXT { UNKNOWN, PNG, JPG, JP2, TIFF, CVMAT_TXT, MATLAB_MAT };\r
+       static FILE_EXT getImageFileFormatFromExt(const std::string &s);\r
+
        class IMAGE_FORMAT {
                protected:
                float * target_bitmap_f_;
@@ -171,7 +174,11 @@ namespace IMAGE_FORMATS {
                                *(++bitmapf) = b/255.0;
                                if(pixcomp_==Image::RGB) return; else *(++bitmapf) = a;
                        }
-               }
+               }\r
+\r
+               public:\r
+               double _zoom_percentage_;\r
+               Image& _zoom_(const double percentage);
 
                protected:
                int width_, height_;