11 #ifndef GEOMETRIC_CONTEXT_H
12 #define GEOMETRIC_CONTEXT_H
15 #include "i/i_float_io.h"
16 #include "i/i_float.h"
21 #define MAX_NUM_ENTITIES 30
27 enum Geometric_context_label {
51 : seg_map(iseg_map), probabilities(iprobabilities), num_segments(0)
57 : seg_map(seg_path.c_str()), probabilities(prob_path.c_str()), num_segments(0)
97 void count_segments();
Definition: geometric_context.h:25
Geometric_context(const std::string &seg_path, const std::string prob_path)
Definition: geometric_context.h:56
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
void draw_geometric_context(Image &img) const
Definition: geometric_context.cpp:16
This class implements matrices, in the linear-algebra sense, restricted to integer-valued elements...
Definition: l_int_matrix.h:71
void draw_segment(Image &img, int segment_index) const
Definition: geometric_context.cpp:255
void draw_segmentation(Image &img) const
Definition: geometric_context.cpp:236
void convert_map_to_edges(const Int_matrix &imap, Image &img)
Definition: geometric_context.cpp:357
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
double compute_score(const kjb::Image &img) const
Definition: geometric_context.cpp:72
void init_context()
Definition: geometric_context.cpp:272
int get_num_segments() const
Definition: geometric_context.h:79
Geometric_context(const Int_matrix &iseg_map, const Matrix &iprobabilities)
Definition: geometric_context.h:50
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
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
void convert_map_to_image(const Int_matrix &imap, Image &img)
Definition: geometric_context.cpp:299