00001
00002
00003 #ifndef IMAGES_TEMPORARY_HPP
00004 #define IMAGES_TEMPORARY_HPP
00005
00006 #include "stereo/ImagesSizes.hpp"
00007 #include "image/Image.hpp"
00008
00009 namespace jafar {
00011 namespace stereo {
00012
00018 class ImagesTemporary
00019 {
00020 public:
00021 enum STATE { NOT_ALLOCATED, ALLOCATED };
00022
00023
00024 enum IMAGE_STATE {IMAGE_ALLOCATED,
00025 IMAGE_INITIALIZED,
00026 IMAGE_COMPUTED};
00027
00028 ImagesTemporary();
00029 ~ImagesTemporary();
00030
00032 void initialize(ImagesSizes& imagesSizes);
00033
00035 void clean();
00036
00038 void info();
00039
00040
00048 jafar::image::Image* getImageForMoyennes();
00049
00050
00051
00052
00053
00055 ImagesTemporary::STATE state;
00056
00057
00059 ImagesSizes imagesSizes;
00060
00061
00062 ImagesTemporary::IMAGE_STATE state_intermediaire_haut;
00063 ImagesTemporary::IMAGE_STATE state_intermediaire_bas;
00064 short* intermediaire_haut;
00065 short* intermediaire_bas;
00066
00067
00068 ImagesTemporary::IMAGE_STATE state_intermediaire_moyennes1;
00069 ImagesTemporary::IMAGE_STATE state_intermediaire_moyennes2;
00070 short* intermediaire_moyennes1;
00071 int* intermediaire_moyennes2;
00072
00073
00074 ImagesTemporary::IMAGE_STATE state_moyennes;
00075 ImagesTemporary::IMAGE_STATE state_sigmas;
00076 float* im_moyennes;
00077 float* im_sigmas;
00078 };
00079
00080 }
00081 }
00082
00083 #endif // IMAGES_TEMPORARY_HPP
00084