필터 지우기
필터 지우기

Plot extracted world coordinate of object on object

조회 수: 4 (최근 30일)
Sam Ade
Sam Ade 2022년 7월 16일
편집: Krishna 2024년 2월 7일
Hello,
I have successfully developed a computer vision alrothim to detect segments of an object. To help, I have colored the two segments I am interested in.
I am having a challenge plotting the XY coordinate (shown left of image) of the detected color on the original image so that their location aligns. Can any one offer any suggestions or help? I will very much appreciate this. Thank you.
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 7월 17일
Hi Sam,
Are you wish to get the coordinates of the color segments (Red & Blue)?
Kalyan
Sam Ade
Sam Ade 2022년 7월 17일
I would like to let the xy coordinate of the detected color match (or rotated) to that of the actual image taken with a camera.

댓글을 달려면 로그인하십시오.

답변 (1개)

Krishna
Krishna 2024년 2월 7일
편집: Krishna 2024년 2월 7일
Hello Sam,
As far as I understand your question you need to plot the X Y coordinate you have found for different segments in the image using your computer vision algorithm. If you're using MATLAB to plot the XY coordinates of detected colour segments on an original image, you can follow these steps:
  1. Read the image using ‘imread’.
  2. Use ‘insertshape’ to mark the image of the detected coordinates.
  3. Use ‘imwirte’ or ’imshow’ to display the information.
Please go through the following documentations for more information on the function,
Now for troubleshooting alignment issues as you mentioned in your question,
  • Confirm that the coordinate system used in your detection algorithm matches MATLAB's image coordinate system, where the top-left corner is (1,1).
  • If you're using normalized coordinates or a different scale, convert them to pixel coordinates that match the original image's resolution.
  • Check for any image preprocessing steps like padding, scaling, or rotations you might be using in your computer vision algorithm that could affect the alignment of the coordinates.
If you're working with a sequence of images or a video, apply this process to each frame. If your algorithm outputs bounding boxes, you can use ‘rectangle’ in MATLAB to draw the boxes on the image.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by