MCPcopy Create free account
hub / github.com/Profactor/cv-plot / transform

Method transform

CvPlot/inc/CvPlot/core/Transformation.h:62–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60class LinLogTransformation : public Transformation {
61public:
62 cv::Point2d transform(const cv::Point2d &point)const override {
63 return cv::Point2d(point.x, std::log(point.y));
64 }
65 cv::Point2d untransform(const cv::Point2d &point)const override {
66 return cv::Point2d(point.x, std::exp(point.y));
67 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected