|
|
|
|
|
|
|
|
Point imageCenter = Point(originalImage.size().width/2.0, originalImage.size().height/2.0); |
|
|
Point imageCenter = Point(originalImage.size().width/2.0, originalImage.size().height/2.0); |
|
|
Point focalPoint = Point(imageCenter.x, imageCenter.y+1000.0); |
|
|
Point focalPoint = Point(imageCenter.x, imageCenter.y+1000.0); |
|
|
|
|
|
|
|
|
cv::arrowedLine(originalImage, focalPoint, contourCenter, Scalar(0,0,255), 2, 8); |
|
|
|
|
|
cv::arrowedLine(originalImage, focalPoint, imageCenter, Scalar(0,0,255), 2, 8); |
|
|
|
|
|
|
|
|
cv::arrowedLine(originalImage, focalPoint, contourCenter, Scalar(0,0,255), 2, 8, 0, 0.03); |
|
|
|
|
|
cv::arrowedLine(originalImage, focalPoint, imageCenter, Scalar(0,0,255), 2, 8, 0, 0.03); |
|
|
} |
|
|
} |
|
|
return originalImage; |
|
|
return originalImage; |
|
|
} |
|
|
} |