8 #ifndef COMPAREABLE_OMAP_H
9 #define COMPAREABLE_OMAP_H
12 #include "i/i_float_io.h"
13 #include "i/i_float.h"
37 totalbaseblack = get_black(basein);
43 Image tempimg(fname.c_str());
44 _num_cols = tempimg.get_num_cols();
45 _num_rows = tempimg.get_num_rows();
48 totalbaseblack = get_black(tempimg);
49 total = tempimg.get_num_rows()*tempimg.get_num_cols();
82 const std::vector<kjb::Int_vector> & surface_changes,
104 #warning "[Code police] Please don't create identifier names that start with"
105 #warning "[Code police] an underscore. Such identifiers are reserved."
109 int get_black(
const Image & howblack);
Comparable_omap(const std::string &fname)
Definition: comparable_omap.h:41
Definition for the Int_matrix class, a thin wrapper on the KJB Int_matrix struct and its related func...
double compare_omap(const Int_matrix &imap) const
Definition: comparable_omap.cpp:187
This class implements matrices, in the linear-algebra sense, restricted to integer-valued elements...
Definition: l_int_matrix.h:71
void convert_map_to_image(const Int_matrix &imap, Image &img)
Definition: comparable_omap.cpp:390
int get_num_rows() const
Return the number of rows in the image.
Definition: i_image.h:256
creates an omap from an image that can call compare_omap(compareto) to see how similar it is...
Definition: comparable_omap.h:26
int get_num_cols() const
Return the number of columns in the image.
Definition: i_image.h:262
void prepare_int_maps(const kjb::Image &base)
Definition: comparable_omap.cpp:23
double compare_omap_integral(const std::vector< kjb::Int_vector > &surface_changes, int surface_counter) const
Definition: comparable_omap.cpp:268
Comparable_omap(const Image &basein)
Definition: comparable_omap.h:30
Code for a wrapper class around the C struct KJB_Image.
Support for error handling exception classes in libKJB.
Wrapped version of the C struct KJB_image.
Definition: i_image.h:76