11 # include <vcl_msvc_warnings.h> 26 vil_chord(
unsigned ilo1,
unsigned ihi1,
unsigned j1)
27 :
ilo(ilo1),
ihi(ihi1),
j(j1) {}
36 return os<<
"(["<<c.
ilo<<
','<<c.
ihi<<
"],"<<c.
j<<
')';
40 inline unsigned vil_area(
const std::vector<vil_chord>& region)
43 for (
auto i : region) A+=i.length();
47 #endif // vil_chord_h_
vil_chord(unsigned ilo1, unsigned ihi1, unsigned j1)
Construct.
vil_chord()
Default constructor.
Store information about position of a row of pixels in an image.
unsigned length() const
length == number of pixels.
std::ostream & operator<<(std::ostream &os, vil_chord c)
Print to stream.
unsigned vil_area(const std::vector< vil_chord > ®ion)
Compute area of region defined by (non-overlapping) chords.