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

Method transform

CvPlot/inc/CvPlot/core/Transformation.h:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33class LogLogTransformation : public Transformation {
34public:
35 cv::Point2d transform(const cv::Point2d &point)const override {
36 return cv::Point2d(std::log(point.x), std::log(point.y));
37 }
38 cv::Point2d untransform(const cv::Point2d &point)const override {
39 return cv::Point2d(std::exp(point.x), std::exp(point.y));
40 }

Callers 2

projectMethod · 0.45
projectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected