12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #pragma once
- #include <opencv2/opencv.hpp>
- #include <iostream>
- #include <fstream>
- #include <math.h>
- #include <vector>
- #include "ReprocessCommon.h"
- using namespace std;
- using namespace cv;
- typedef struct RotatedRectangle
- {
- float Angle;
- float Cx;
- float Cy;
- float Height;
- float Width;
- };
- typedef struct
- {
- int width;
- int height;
- ColorType colorType;
- uint8_t* dataBuffer;
- }ImageInfo;
- #pragma region µ¼³öº¯Êý
- extern "C" __declspec(dllexport) bool FitLine(const cv::Point * points, const int pointCount, float* line, cv::DistanceTypes type,
- double param, double reps, double aeps);
- extern "C" __declspec(dllexport) bool PointInPolygon(const cv::Point * contours, const int pointCount, const cv::Point * point);
- extern "C" __declspec(dllexport) bool CalcMaxPlaque(const cv::Point * arteryContour, const cv::Point * plaqueContour,
- const int arteryCount, const int plaqueCount, const int left, const int top, float& ratio, RotatedRectangle& RealRect);
- extern "C" __declspec(dllexport) bool IsBrightPlaque(ImageInfo srcImgInfo, const cv::Point * contours, const int pointCount);
- extern "C" __declspec(dllexport) bool Get2DMeasureImage(ImageInfo srcImgInfo, const int dataSize, ImageInfo & dstImgInfo);
- extern "C" __declspec(dllexport) bool SaveSliceImage(ImageInfo srcImgInfo, const int name);
- #pragma endregion
- bool comparePoints(const cv::Point& p1, const cv::Point& p2);
|