Here is my code:
U = load('C:\Users\khan1\jupyter_test_code\CRBD\TMGEM results\crop_row_001.tmg');
O = imread('C:\Users\khan1\jupyter_test_code\CRBD\Images\crop_row_001.JPG');
h1 = figure;
imshow(O);
figure(h1)
ax = gca;hold on;
plot(ax,U,'color','red','LineWidth',1);
camroll(ax,-90);
Here is the output I am getting. As you can see, lines are not aligned with the green leaves.
Link for .tmg and .jpg files:
https://drive.google.com/open?id=1dIMlWPMGYuv9QAox24UQ4dLAyyTVfXsb
2 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/518399-i-have-to-plot-some-lines-over-an-image-lines-are-rotated-so-to-align-them-with-image-i-used-camro#comment_829078
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/518399-i-have-to-plot-some-lines-over-an-image-lines-are-rotated-so-to-align-them-with-image-i-used-camro#comment_829078
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/518399-i-have-to-plot-some-lines-over-an-image-lines-are-rotated-so-to-align-them-with-image-i-used-camro#comment_829084
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/518399-i-have-to-plot-some-lines-over-an-image-lines-are-rotated-so-to-align-them-with-image-i-used-camro#comment_829084
Sign in to comment.