Go to the documentation of this file.00001
00002
00003 #ifndef vimt3d_image_3d_of_h_
00004 #define vimt3d_image_3d_of_h_
00005
00006
00007
00008
00009
00010
00011
00012 #include <vimt3d/vimt3d_image_3d.h>
00013 #include <vil3d/vil3d_image_view.h>
00014 #include <vcl_iosfwd.h>
00015
00016
00017
00018
00019
00020 template<class T>
00021 class vimt3d_image_3d_of : public vimt3d_image_3d
00022 {
00023 private:
00024
00025 vil3d_image_view<T> image_;
00026
00027
00028
00029 bool equals(const vimt_image &) const;
00030
00031
00032 public:
00033
00034
00035 vimt3d_image_3d_of() {}
00036
00037
00038
00039 vimt3d_image_3d_of(unsigned ni, unsigned nj, unsigned nk, unsigned np=1,
00040 const vimt3d_transform_3d& w2i=vimt3d_transform_3d())
00041 : vimt3d_image_3d(w2i), image_(ni, nj, nk, np) {}
00042
00043
00044
00045
00046 vimt3d_image_3d_of(const vil3d_image_view<T>& view,
00047 const vimt3d_transform_3d& w2i)
00048 : vimt3d_image_3d(w2i), image_(view) {}
00049
00050
00051
00052 virtual ~vimt3d_image_3d_of() {}
00053
00054
00055 virtual const vil3d_image_view_base& image_base() const { return image_; }
00056
00057
00058 vil3d_image_view<T>& image() { return image_; }
00059
00060
00061 const vil3d_image_view<T>& image() const { return image_; }
00062
00063
00064 unsigned n_planes() const {return image_.nplanes();}
00065
00066
00067
00068
00069
00070
00071 bool operator==(const vimt3d_image_3d_of<T> &) const;
00072
00073
00074
00075
00076
00077
00078 void set_valid_region(int i0, unsigned ni, int j0, unsigned nj,
00079 int k0, unsigned nk);
00080
00081
00082 void deep_copy(const vimt3d_image_3d_of& image);
00083
00084
00085 short version_no() const;
00086
00087
00088 virtual vcl_string is_a() const;
00089
00090
00091 virtual bool is_class(vcl_string const& s) const;
00092
00093
00094
00095 virtual vimt_image* clone() const { return new vimt3d_image_3d_of(*this); }
00096
00097
00098
00099 virtual vimt_image* deep_clone() const;
00100
00101
00102 virtual void print_summary(vcl_ostream& os) const;
00103
00104
00105 virtual void print_all(vcl_ostream& os) const;
00106
00107
00108 virtual void b_write(vsl_b_ostream& bfs) const;
00109
00110
00111 virtual void b_read(vsl_b_istream& bfs);
00112 };
00113
00114
00115
00116
00117
00118
00119
00120
00121 template<class T>
00122 bool vimt3d_image_3d_deep_equality(const vimt3d_image_3d_of<T>& lhs,
00123 const vimt3d_image_3d_of<T>& rhs);
00124
00125
00126 #endif // vimt3d_image_3d_of_h_