Add a scale marker (ruler or reference image) to a Texture image.
void setScaleType(Type t)
Set the scale marker type.
ScaleMarkerGenerator()=default
void setReferenceImagePixelSize(double s)
Set the reference image pixel size (in microns)
void draw_tick_label_(cv::Mat img, const std::string &value, const cv::Point &position)
void setScaleBarColor(const Color &c)
Set the scale bar (ruler) color.
void setInputImagePixelSize(double s)
Set the input texture image pixel size (in microns)
cv::Mat getOutputScaleImage()
Get the computed scale marker image.
cv::Mat compute()
Compute scale marker and combine with input texture image.
cv::Mat getOutputImg()
Get the computed output image.
cv::Mat generate_scale_bar_()
void setReferenceImage(const cv::Mat &i)
Set the scale reference image.
void setInputImage(const cv::Mat &i)
Set the input texture image.
cv::Mat resize_ref_image_()
Texturing and parameterization algorithms and utilities library.