MCPcopy Create free account
hub / github.com/creatale/node-dv / SameBox

Method SameBox

deps/tesseract/ccstruct/blobs.h:219–221  ·  view source on GitHub ↗

Returns true if *this and other have equal bounding boxes.

Source from the content-addressed store, hash-verified

217 TBOX bounding_box() const;
218 // Returns true if *this and other have equal bounding boxes.
219 bool SameBox(const TESSLINE& other) const {
220 return topleft == other.topleft && botright == other.botright;
221 }
222 // Returns true if the given line segment crosses any outline of this blob.
223 bool SegmentCrosses(const TPOINT& pt1, const TPOINT& pt2) const {
224 if (Contains(pt1) && Contains(pt2)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected