$extrastylesheet
Functions | |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::alignment_decision_image (const Image< I > &input, const object_links< L > &links, const object_links< L > &filtered_links, const anchor::Type &anchor) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::bboxes_enlarged_image (const Image< I > &input, const line_set< L > &lines, const value::rgb8 &text_value, const value::rgb8 &non_text_value) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::bboxes_enlarged_image (const Image< I > &input, const line_set< L > &lines) |
template<typename I > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::bboxes_image (const Image< I > &input, const mln::util::array< box< typename I::site > > &bboxes, const value::rgb8 &value) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::bboxes_image (const Image< I > &input, const line_set< L > &lines, const value::rgb8 &value) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::bboxes_image (const Image< I > &input, const line_set< L > &lines) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::bboxes_image (const Image< I > &input, const component_set< L > &comps, const value::rgb8 &value) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::char_space_image (const Image< I > &input, const line_set< L > &line, const value::rgb8 &v=literal::cyan) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::decision_image (const Image< I > &input, const object_groups< L > &groups, const object_groups< L > &filtered_groups, anchor::Type anchor) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::decision_image (const Image< I > &input, const object_links< L > &links, const object_links< L > &filtered_links, anchor::Type anchor) |
template<typename I > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::highlight_text_area (const Image< I > &input, const mln::util::array< box< typename I::site > > &bbox) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::highlight_text_area (const Image< I > &input, const line_set< L > &lines) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::highlight_text_area (const Image< I > &input, const scribo::component_set< L > &components) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::line_info_image (const Image< I > &input, const line_set< L > &line) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::linked_bboxes_image (const Image< I > &input, const object_links< L > &array, const value::rgb8 &box_value, const value::rgb8 &link_value, anchor::Type anchor) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::linked_bboxes_image (const Image< I > &input, const object_links< L > &array, const value::rgb8 &box_value, const value::rgb8 &link_value) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::linked_bboxes_image (const Image< I > &input, const object_links< L > &left_link, const object_links< L > &right_link, const value::rgb8 &box_value, const value::rgb8 &link_value, anchor::Type anchor) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::linked_bboxes_image (const Image< I > &input, const object_links< L > &left_link, const object_links< L > &right_link, const value::rgb8 &box_value, const value::rgb8 &left_link_value, const value::rgb8 &right_link_value, const value::rgb8 &validated_link_value, anchor::Type anchor) |
template<typename I , typename L , typename G > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::linked_bboxes_image (const Image< I > &input, const Graph< G > &g, const value::rgb8 &box_value, const value::rgb8 &link_value, anchor::Type anchor) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::links_decision_image (const Image< I > &input_, const object_links< L > &links, const object_links< L > &filtered_links) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::links_image (const Image< I > &input_, const object_links< L > &links, anchor::Type anchor, bool draw_bboxes=true) |
scribo::debug::internal::logger_ & | scribo::debug::logger () |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::looks_like_a_text_line_image (const Image< I > &input, const line_set< L > &lines, const value::rgb8 &text_value, const value::rgb8 &non_text_value) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::looks_like_a_text_line_image (const Image< I > &input, const line_set< L > &lines) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::mean_and_base_lines_image (const Image< I > &input, const line_set< L > &lines, const value::rgb8 &bbox_value, const value::rgb8 &meanline_value, const value::rgb8 &baseline_value) |
template<typename I , typename L > | |
mln::trait::ch_value< I, value::rgb8 >::ret | scribo::debug::mean_and_base_lines_image (const Image< I > &input, const line_set< L > &lines) |
template<typename L , typename L2 > | |
void | scribo::debug::save_comp_diff (const component_set< L > &comps_ref, const component_set< L2 > &comps_new, const std::string &filename) |
template<typename I > | |
void | scribo::debug::save_label_image (const Image< I > &lbl, const typename I::value &nlabels, const char *filename) |
template<typename I > | |
void | scribo::debug::save_table_image (const Image< I > &input_, mln::util::couple< mln::util::array< box< typename I::site > >, mln::util::array< box< typename I::site > > > tableboxes, const value::rgb8 &bbox_color, const std::string &filename) |
template<typename S > | |
void | scribo::debug::save_table_image (const Site_Set< S > &input_domain, mln::util::couple< mln::util::array< box< typename S::site > >, mln::util::array< box< typename S::site > > > tableboxes, const value::rgb8 &bg_color, const value::rgb8 &bbox_color, const std::string &filename) |
template<typename I , typename L > | |
mln::trait::concrete< I >::ret | scribo::debug::text_areas_image (const Image< I > &input_rgb, const scribo::component_set< L > &comps) |
template<typename L > | |
image2d< value::rgb8 > | scribo::debug::text_color_image (const document< L > &doc) |
Debug routines.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::alignment_decision_image | ( | const Image< I > & | input, |
const object_links< L > & | links, | ||
const object_links< L > & | filtered_links, | ||
const anchor::Type & | anchor | ||
) |
Save a color image showing the difference between to object links.
[in] | input | An image. It's value type must be convertible towards rgb8. |
[in] | links | Object links information. |
[in] | filtered_links | A copy of links which have been filtered. |
[in] | anchor | Anchor from where the links are drawn. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::bboxes_enlarged_image | ( | const Image< I > & | input, |
const line_set< L > & | lines, | ||
const value::rgb8 & | text_value, | ||
const value::rgb8 & | non_text_value | ||
) |
Compute an image of enlarged component bounding boxes.
This check whether each line looks like a text line. If it is a text line, its extended bounding box is drawn, otherwise, it is normal bounding box.
This rountine uses scribo::internal::looks_like_a_text_line to check if a component looks like a text line.
[in] | input | An image convertible towards a color image. |
[in] | lines | A line set. |
[in] | text_value | The color used to draw bounding boxes of components looking like a text line. |
[in] | non_text_value | The color used to draw bounding boxes of components NOT looking like a text line. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::bboxes_enlarged_image | ( | const Image< I > & | input, |
const line_set< L > & | lines | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.text_value is set to literal::green.
non_text_value is set to literal::red.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::bboxes_image | ( | const Image< I > & | input, |
const mln::util::array< box< typename I::site > > & | bboxes, | ||
const value::rgb8 & | value | ||
) |
Draw a list of bounding boxes.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::bboxes_image | ( | const Image< I > & | input, |
const line_set< L > & | lines, | ||
const value::rgb8 & | value | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.value is set to literal::red.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::char_space_image | ( | const Image< I > & | input, |
const line_set< L > & | line, | ||
const value::rgb8 & | v = literal::cyan |
||
) |
Draw inter character space.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::decision_image | ( | const Image< I > & | input, |
const object_groups< L > & | groups, | ||
const object_groups< L > & | filtered_groups, | ||
anchor::Type | anchor | ||
) |
Save a color image showing the difference between to object groups.
[in] | input | An image. It's value type must be convertible towards rgb8. |
[in] | groups | Object groups information. |
[in] | filtered_groups | A copy of groups which have been filtered. |
[in] | anchor | Anchor from where the links are drawn. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::decision_image | ( | const Image< I > & | input, |
const object_links< L > & | links, | ||
const object_links< L > & | filtered_links, | ||
anchor::Type | anchor | ||
) |
Save a color image showing the difference between to object links.
[in] | input | An image. It's value type must be convertible towards rgb8. |
[in] | links | Object links information. |
[in] | filtered_links | A copy of links which have been filtered. |
[in] | anchor | Anchor from where the links are drawn. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::highlight_text_area | ( | const Image< I > & | input, |
const mln::util::array< box< typename I::site > > & | bbox | ||
) |
Darken an image and highlight valid lines.
[in] | input | An image. |
[in] | bbox | An array of text area bounding boxes. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::highlight_text_area | ( | const Image< I > & | input, |
const line_set< L > & | lines | ||
) |
Darken an image and highlight valid lines.
[in] | input | An image. |
[in] | lines | A line set. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::highlight_text_area | ( | const Image< I > & | input, |
const scribo::component_set< L > & | components | ||
) |
Darken an image and highlight valid lines.
This overload is useful if you do know that all the components are text.
[in] | input | An image. |
[in] | components | A component set. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::line_info_image | ( | const Image< I > & | input, |
const line_set< L > & | line | ||
) |
Draw typographic information from lines.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::linked_bboxes_image | ( | const Image< I > & | input, |
const object_links< L > & | array, | ||
const value::rgb8 & | box_value, | ||
const value::rgb8 & | link_value, | ||
anchor::Type | anchor | ||
) |
Compute the line of components links image.
[in,out] | input | The binary from where the components are extracted. |
[in] | array | Components links. |
[in] | box_value | Value used to draw line bounding boxes. |
[in] | link_value | Value used to draw line links. |
[in] | anchor | Anchor from where the links are drawn. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::linked_bboxes_image | ( | const Image< I > & | input, |
const object_links< L > & | array, | ||
const value::rgb8 & | box_value, | ||
const value::rgb8 & | link_value | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The default anchor type is set to anchor::Center.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::linked_bboxes_image | ( | const Image< I > & | input, |
const object_links< L > & | left_link, | ||
const object_links< L > & | right_link, | ||
const value::rgb8 & | box_value, | ||
const value::rgb8 & | link_value, | ||
anchor::Type | anchor | ||
) |
Compute the line of components left and right links image.
[in,out] | input | The binary from where the components are extracted. |
[in] | left_link | Components left links. |
[in] | right_link | Components right links. |
[in] | box_value | Value used to draw line bounding boxes. |
[in] | link_value | Value used to draw line links. |
[in] | anchor | Anchor from where the links are drawn. |
|
inline |
Compute the line of components left and right links image.
Draw also validated links.
[in,out] | input | The binary from where the components are extracted. |
[in] | left_link | Components left links. |
[in] | right_link | Components right links. |
[in] | box_value | Value used to draw line bounding boxes. |
[in] | left_link_value | Value used to draw line left links. |
[in] | right_link_value | Value used to draw line left links. |
[in] | validated_link_value | Value used to draw line validated links. |
[in] | anchor | Anchor from where the links are drawn. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::linked_bboxes_image | ( | const Image< I > & | input, |
const Graph< G > & | g, | ||
const value::rgb8 & | box_value, | ||
const value::rgb8 & | link_value, | ||
anchor::Type | anchor | ||
) |
Compute the line link graph image.
[in,out] | input | The binary from where the components are extracted. |
[in] | g | The link graph. |
[in] | box_value | Value used to draw line bounding boxes. |
[in] | link_value | Value used to draw line links. |
[in] | anchor | Anchor from where the links are drawn. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::links_decision_image | ( | const Image< I > & | input_, |
const object_links< L > & | links, | ||
const object_links< L > & | filtered_links | ||
) |
Save a color image showing the difference between to object groups.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::links_image | ( | const Image< I > & | input_, |
const object_links< L > & | links, | ||
anchor::Type | anchor, | ||
bool | draw_bboxes = true |
||
) |
Save a color image showing components links.
scribo::debug::internal::logger_& scribo::debug::logger | ( | ) |
Return a reference to the logger.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::looks_like_a_text_line_image | ( | const Image< I > & | input, |
const line_set< L > & | lines, | ||
const value::rgb8 & | text_value, | ||
const value::rgb8 & | non_text_value | ||
) |
Compute an image where components are drawn differently whether they look like a line or not.
[in] | input | An image convertible towards a color image. |
[in] | lines | A line set. |
[in] | text_value | The color used to draw bounding boxes of components looking like a text line. |
[in] | non_text_value | The color used to draw bounding boxes of components NOT looking like a text line. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::looks_like_a_text_line_image | ( | const Image< I > & | input, |
const line_set< L > & | lines | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.text_value is set to literal::green.
non_text_value is set to literal::red.
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::mean_and_base_lines_image | ( | const Image< I > & | input, |
const line_set< L > & | lines, | ||
const value::rgb8 & | bbox_value, | ||
const value::rgb8 & | meanline_value, | ||
const value::rgb8 & | baseline_value | ||
) |
Compute a color image showing the mean and the base lines of the text lines.
The mean line is drawn with a dashed line. The base line is drawn with a plain line.
[in] | input | An image convertible towards a color image. |
[in] | lines | A line set. |
[in] | bbox_value | Value used to draw lines bounding boxes. |
[in] | meanline_value | Value used to draw mean lines. |
[in] | baseline_value | Value used to draw base lines. |
mln::trait::ch_value< I , value::rgb8 >::ret scribo::debug::mean_and_base_lines_image | ( | const Image< I > & | input, |
const line_set< L > & | lines | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.text_value is set to literal::green.
non_text_value is set to literal::red.
void scribo::debug::save_comp_diff | ( | const component_set< L > & | comps_ref, |
const component_set< L2 > & | comps_new, | ||
const std::string & | filename | ||
) |
Show the difference between two object images.
[in] | comps_ref | A component set. |
[in] | comps_new | Another component set. |
[in] | filename | The output filename. |
void scribo::debug::save_label_image | ( | const Image< I > & | lbl, |
const typename I::value & | nlabels, | ||
const char * | filename | ||
) |
Save a labeled image in a color image.
[in] | lbl | A label image. |
[in] | nlabels | The number of labels. |
[in] | filename | The output file name. |
void scribo::debug::save_table_image | ( | const Image< I > & | input_, |
mln::util::couple< mln::util::array< box< typename I::site > >, mln::util::array< box< typename I::site > > > | tableboxes, | ||
const value::rgb8 & | bbox_color, | ||
const std::string & | filename | ||
) |
Save lines bounding boxes in a copy of input_
.
Bounding boxes are displayed with bbox_color
.
void scribo::debug::save_table_image | ( | const Site_Set< S > & | input_domain, |
mln::util::couple< mln::util::array< box< typename S::site > >, mln::util::array< box< typename S::site > > > | tableboxes, | ||
const value::rgb8 & | bg_color, | ||
const value::rgb8 & | bbox_color, | ||
const std::string & | filename | ||
) |
Save lines bounding boxes in an image defined on input_domain
filled with bg_color
.
Bounding boxes are displayed with bbox_color
.
mln::trait::concrete< I >::ret scribo::debug::text_areas_image | ( | const Image< I > & | input_rgb, |
const scribo::component_set< L > & | comps | ||
) |
Compute an image including detected text areas only.
image2d<value::rgb8> scribo::debug::text_color_image | ( | const document< L > & | doc | ) |
Draw text components with their respective colors.