Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef IMAGEREORDERER_H_
00030 #define IMAGEREORDERER_H_
00031
00032 #include <images/Images/PagedImage.h>
00033 #include <casa/Logging/LogIO.h>
00034
00035 namespace casa {
00036 class ImageReorderer {
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 public:
00062 ImageReorderer(const String& imagename, uInt order, const String& outputImage);
00063
00064 ImageReorderer(const String& imagename, const String& order, const String& outputImage);
00065
00066 ImageReorderer(const String& imagename, const Vector<String> order, const String& outputImage);
00067
00068 ImageReorderer(const ImageInterface<Float> * const image, uInt order, const String& outputImage);
00069
00070 ImageReorderer(const ImageInterface<Float> * const image, const String& order, const String& outputImage);
00071
00072 ImageReorderer(const ImageInterface<Float> * const image, const Vector<String> order, const String& outputImage);
00073
00074 ~ImageReorderer();
00075
00076
00077 ImageInterface<Float>* reorder() const;
00078
00079 private:
00080 LogIO *_log;
00081 ImageInterface<Float> *_image;
00082 IPosition _order;
00083 String _outputImage;
00084
00085 ImageReorderer();
00086
00087 void _construct(const String& imagename, const String& outfile);
00088
00089 IPosition _getOrder(uInt order) const;
00090
00091 IPosition _getOrder(const String& order) const;
00092
00093 IPosition _getOrder(Vector<String>& order) const;
00094
00095 void _downcase(Vector<String>& vec) const;
00096 };
00097 }
00098
00099
00100 #endif