You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
618 B
C
23 lines
618 B
C
1 year ago
|
#pragma once
|
||
|
#include "MI_Interface.h"
|
||
|
|
||
|
using namespace cv;
|
||
|
|
||
|
class MF_VisionMeasureBase : public MI_VisionInterface
|
||
|
{
|
||
|
public:
|
||
|
explicit MF_VisionMeasureBase();
|
||
|
~MF_VisionMeasureBase();
|
||
|
|
||
|
|
||
|
virtual bool measureAxis(std::vector<double>& measureRes, const MN_VisionImage::MS_ImageParam& _bufImg);
|
||
|
|
||
|
protected:
|
||
|
bool buffer2Mat(const MN_VisionImage::MS_ImageParam& _inImg, cv::Mat& _mat);
|
||
|
Mat getRotationMatrix(Point2f center, float angle, float scale);
|
||
|
cv::Point getMiddleBlackPixelInRow(const cv::Mat& binaryImage, int row);
|
||
|
double CalculatingAngle(Point middleBlackPixelFirstRow, Point middleBlackPixelLastRow);
|
||
|
|
||
|
};
|
||
|
|