17 #ifndef SUBPIXEL_IMAGE_CONTOURS_H
18 #define SUBPIXEL_IMAGE_CONTOURS_H
21 #include "../ami_image/image.h"
22 #include "../ami_primitives/point2d.h"
26 #include "wxAmiDebugLog.h"
92 bool subpixel_empty();
108 const bool *get_c()
const {
return c;}
117 const float *get_x()
const {
return x;}
126 const float *get_y()
const {
return y;}
136 const float *get_d()
const {
return d;}
145 const float *get_coseno()
const {
return coseno;}
154 const float *get_seno()
const {
return seno;}
176 void set_c(
bool *c2){
if(c!=NULL) free(c); c=c2;}
183 void set_x(
float *x2){
if(x!=NULL) free(x); x=x2;}
190 void set_y(
float *y2){
if(y!=NULL) free(y); y=y2;}
198 void set_d(
float *d2){
if(d!=NULL) free(d); d=d2;}
206 if(coseno!=NULL) free(coseno); coseno=coseno2;}
214 if(seno!=NULL) free(seno); seno=seno2;}
subpixel_image_contours()
Constructor without taking memory.
Definition: subpixel_image_contours.h:58
void set_y(float *y2)
Set array y of subpixel y coordinate location.
Definition: subpixel_image_contours.h:190
Class to store subpixel contours.
Definition: subpixel_image_contours.h:39
float * get_coseno()
Return array coseno of x coordinate contour point orientation.
Definition: subpixel_image_contours.h:143
int set_width(int width2)
Set image width.
Definition: subpixel_image_contours.h:221
float * get_x()
Return array x of subpixel x coordinate location.
Definition: subpixel_image_contours.h:115
void set_seno(float *seno2)
Set array seno of y coordinate contour point orientation.
Definition: subpixel_image_contours.h:213
bool * get_c()
Return array c to identity contour points.
Definition: subpixel_image_contours.h:106
void set_coseno(float *coseno2)
Set array coseno of x coordinate contour point orientation.
Definition: subpixel_image_contours.h:205
float * get_y()
Return array y of subpixel y coordinate location.
Definition: subpixel_image_contours.h:124
int get_height() const
Return image height.
Definition: subpixel_image_contours.h:168
float * get_seno()
Return array seno of y coordinate contour point orientation.
Definition: subpixel_image_contours.h:152
int get_width() const
Return image width.
Definition: subpixel_image_contours.h:161
void set_c(bool *c2)
Set array c to identity contour points.
Definition: subpixel_image_contours.h:176
int set_height(int height2)
Set image height.
Definition: subpixel_image_contours.h:228
void set_x(float *x2)
Set array x of subpixel x coordinate location.
Definition: subpixel_image_contours.h:183
float * get_d()
Return array d of distance to a contour pixel to the boundary of contour pixel area.
Definition: subpixel_image_contours.h:134
void set_d(float *d2)
Set array d of distance to a contour pixel to the boundary of contour pixel area. ...
Definition: subpixel_image_contours.h:198