![]() |
ImageD
v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
|
The D_Contour class represents a contour of a 2D object and offers several methods for gaining information about it. More...
#include <d_contour.h>
Public Member Functions | |
D_Contour () | |
D_Contour (vector< Point > contour) | |
D_Contour (Rect box) | |
D_Contour | offset (Point PO) |
void | set_contour (vector< Point > contour) |
vector< Point > | contour () |
vector< Point > | contour (Point P_Offset) |
QString | contour_string () |
bool | empty () |
size_t | size () |
int | l () |
int | r () |
int | b () |
int | t () |
int | w () |
int | h () |
Point | tl () |
Point | tr () |
Point | bl () |
Point | br () |
Point | point (size_t i) |
Point | point (size_t i, Point offset) |
Point | point (size_t i, double scale) |
Point | point (size_t i, double scale, Point offset) |
Rect | bounding_box () |
Rect | bounding_box (D_Contour contour_merge) |
double | area () |
double | perimeter () |
vector< D_Contour > | intersections (D_Contour C2) |
double | intersection_area (D_Contour C2) |
double | intersection_area_relative (D_Contour C2) |
The D_Contour class represents a contour of a 2D object and offers several methods for gaining information about it.
Very similar functionality to D_Component but with less functions and better performance.
D_Contour::D_Contour | ( | ) |
D_Contour::D_Contour | ( | vector< Point > | contour | ) |
D_Contour::D_Contour | ( | Rect | box | ) |
double D_Contour::area | ( | ) |
int D_Contour::b | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
QString D_Contour::contour_string | ( | ) |
|
inline |
|
inline |
double D_Contour::intersection_area | ( | D_Contour | C2 | ) |
double D_Contour::intersection_area_relative | ( | D_Contour | C2 | ) |
int D_Contour::l | ( | ) |
double D_Contour::perimeter | ( | ) |
|
inline |
|
inline |
int D_Contour::r | ( | ) |
void D_Contour::set_contour | ( | vector< Point > | contour | ) |
|
inline |
int D_Contour::t | ( | ) |
|
inline |
|
inline |
|
inline |