1 | initial version |
i think we can use the code below to find the answer. lets try change something
code draws something like this
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
Mat img(600, 600, CV_8UC3, Scalar(0, 0, 0));
Point2d center, start, end, arc_center;
center.x = 495.419403;
center.y = 527.065674;
double start_angle = 0.0;
double end_angle = 56.88228;
double full_angle = 56.88228;
start.x = 501.41940;
start.y = 527.06567;
end.x = 498.69757;
end.y = 532.090979;
arc_center.x = 500.695245;
arc_center.y = 529.92321;
double radius = 6.0;
double angle = 0.0;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 0, 0));
center.x = 495.4194;
center.y = 486.31543;
start_angle = 270.0000;
end_angle = 0.0000;
full_angle = 90.0000;
start.x = 495.41940;
start.y = 480.31543;
end.x = 501.4194;
end.y = 486.31543;
arc_center.x = 499.6620;
arc_center.y = 482.07279;
radius = 6.00000;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 0, 255));
center.x = 454.6691;
center.y = 486.31543;
start_angle = 213.11771;
end_angle = 270.000;
full_angle = 56.88228;
start.x = 449.64386;
start.y = 483.03727;
end.x = 454.66916;
end.y = 480.31543;
arc_center.x = 451.8116;
arc_center.y = 481.03959;
radius = 6.00000;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 255, 0));
center.x = 419.4194;
center.y = 562.31543;
start_angle = 56.88228;
end_angle = 213.1177;
full_angle = 156.2354;
start.x = 429.2539;
start.y = 577.3913;
end.x = 404.3435;
end.y = 552.4809415;
arc_center.x = 406.69148;
arc_center.y = 575.04336;
radius = 18.00000;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 255, 255));
imshow("Image", img);
cv::waitKey(0);
return 0;
}
2 | No.2 Revision |
i think we can use the code below to find the answer. lets try change something
code draws something like this
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
Mat img(600, 600, CV_8UC3, Scalar(0, 0, 0));
Point2d center, start, end, arc_center;
center.x = 495.419403;
center.y = 527.065674;
double start_angle = 0.0;
double end_angle = 56.88228;
double full_angle = 56.88228;
start.x = 501.41940;
start.y = 527.06567;
end.x = 498.69757;
end.y = 532.090979;
arc_center.x = 500.695245;
arc_center.y = 529.92321;
double radius = 6.0;
double angle = 0.0;
Point2d line_start = start;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 0, 0));
center.x = 495.4194;
center.y = 486.31543;
start_angle = 270.0000;
end_angle = 0.0000;
full_angle = 90.0000;
start.x = 495.41940;
start.y = 480.31543;
end.x = 501.4194;
end.y = 486.31543;
arc_center.x = 499.6620;
arc_center.y = 482.07279;
radius = 6.00000;
line(img,line_start, end, Scalar(255, 255, 255));
line_start = start;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 0, 255));
center.x = 454.6691;
center.y = 486.31543;
start_angle = 213.11771;
end_angle = 270.000;
full_angle = 56.88228;
start.x = 449.64386;
start.y = 483.03727;
end.x = 454.66916;
end.y = 480.31543;
arc_center.x = 451.8116;
arc_center.y = 481.03959;
radius = 6.00000;
line(img, line_start, end, Scalar(255, 255, 255));
line_start = start;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 255, 0));
center.x = 419.4194;
center.y = 562.31543;
start_angle = 56.88228;
end_angle = 213.1177;
full_angle = 156.2354;
start.x = 429.2539;
start.y = 577.3913;
end.x = 404.3435;
end.y = 552.4809415;
arc_center.x = 406.69148;
arc_center.y = 575.04336;
radius = 18.00000;
line(img, line_start, end, Scalar(255, 255, 255));
line_start = start;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 255, 0, 255));
imshow("Image", img);
cv::waitKey(0);
return 0;
}
3 | No.3 Revision |
i think we can use the code below to find the answer. lets try change something
code draws something like this
#include ![#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
Mat img(600, 600, CV_8UC3, Scalar(0, 0, 0));
Point2d center, start, end, arc_center;
center.x = 495.419403;
center.y = 527.065674;
double start_angle = 0.0;
double end_angle = 56.88228;
double full_angle = 56.88228;
start.x = 501.41940;
start.y = 527.06567;
end.x = 498.69757;
end.y = 532.090979;
arc_center.x = 500.695245;
arc_center.y = 529.92321;
double radius = 6.0;
double angle = 0.0;
Point2d lastline_end = end;
Point2d line_start = start;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 0, 0));
center.x = 495.4194;
center.y = 486.31543;
start_angle = 270.0000;
end_angle = 0.0000;
full_angle = 90.0000;
start.x = 495.41940;
start.y = 480.31543;
end.x = 501.4194;
end.y = 486.31543;
arc_center.x = 499.6620;
arc_center.y = 482.07279;
radius = 6.00000;
line(img,line_start, end, Scalar(255, 255, 255));
line_start = start;
angle = 180;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 0, 255));
center.x = 454.6691;
center.y = 486.31543;
start_angle = 213.11771;
end_angle = 270.000;
full_angle = 56.88228;
start.x = 449.64386;
start.y = 483.03727;
end.x = 454.66916;
end.y = 480.31543;
arc_center.x = 451.8116;
arc_center.y = 481.03959;
radius = 6.00000;
line(img, line_start, end, Scalar(255, 255, 255));
line_start = start;
angle = 0;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 255, 0));
center.x = 419.4194;
center.y = 562.31543;
start_angle = 56.88228;
end_angle = 213.1177;
full_angle = 156.2354;
start.x = 429.2539;
start.y = 577.3913;
end.x = 404.3435;
end.y = 552.4809415;
arc_center.x = 406.69148;
arc_center.y = 575.04336;
radius = 18.00000;
line(img, line_start, end, Scalar(255, 255, 255));
line_start = start;
line(img, lastline_end, start, Scalar(255, 255, 255));
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 0, 255));
imshow("Image", img);
cv::waitKey(0);
return 0;
}
}](/upfiles/1504172475361563.png)
4 | No.4 Revision |
i think we can use the code below to find the answer. lets try change something
code draws something like this
this
![#include #include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
Mat img(600, 600, CV_8UC3, Scalar(0, 0, 0));
Point2d center, start, end, arc_center;
center.x = 495.419403;
center.y = 527.065674;
double start_angle = 0.0;
double end_angle = 56.88228;
double full_angle = 56.88228;
start.x = 501.41940;
start.y = 527.06567;
end.x = 498.69757;
end.y = 532.090979;
arc_center.x = 500.695245;
arc_center.y = 529.92321;
double radius = 6.0;
double angle = 0.0;
Point2d lastline_end = end;
Point2d line_start = start;
end_angle = end_angle == 0.0 ? 360.0 : end_angle;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 0, 0));
center.x = 495.4194;
center.y = 486.31543;
start_angle = 270.0000;
end_angle = 0.0000;
full_angle = 90.0000;
start.x = 495.41940;
start.y = 480.31543;
end.x = 501.4194;
end.y = 486.31543;
arc_center.x = 499.6620;
arc_center.y = 482.07279;
radius = 6.00000;
line(img,line_start, line(img, line_start, end, Scalar(255, 255, 255));
line_start = start;
angle = 180;
end_angle = end_angle == 0.0 ? 360.0 : end_angle;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 0, 255));
center.x = 454.6691;
center.y = 486.31543;
start_angle = 213.11771;
end_angle = 270.000;
full_angle = 56.88228;
start.x = 449.64386;
start.y = 483.03727;
end.x = 454.66916;
end.y = 480.31543;
arc_center.x = 451.8116;
arc_center.y = 481.03959;
radius = 6.00000;
line(img, line_start, end, Scalar(255, 255, 255));
line_start = start;
angle = 0;
end_angle = end_angle == 0.0 ? 360.0 : end_angle;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(0, 255, 0));
center.x = 419.4194;
center.y = 562.31543;
start_angle = 56.88228;
end_angle = 213.1177;
full_angle = 156.2354;
start.x = 429.2539;
start.y = 577.3913;
end.x = 404.3435;
end.y = 552.4809415;
arc_center.x = 406.69148;
arc_center.y = 575.04336;
radius = 18.00000;
line(img, line_start, end, Scalar(255, 255, 255));
line(img, lastline_end, start, Scalar(255, 255, 255));
end_angle = end_angle == 0.0 ? 360.0 : end_angle;
cv::ellipse(img, center, cv::Size(radius, radius), angle, start_angle, end_angle, cv::Scalar(255, 0, 255));
flip(img, img, 0);
imshow("Image", img);
cv::waitKey(0);
return 0;
}](/upfiles/1504172475361563.png)
}