how to rotate plotted figure and how to covert plotted image as graph
1 次查看(过去 30 天)
显示 更早的评论
am doing my project on graph extraction in hand written word image i want to covert plotted image as graph.
this is my plotted image i want to rotate that image and then i want convert it as graph.
please help me.
2 个评论
Jan
2017-4-18
What exactly does "convert it to graph" mean? Do you want to rotate the image or the data?
回答(1 个)
KSSV
2017-4-19
I = imread('grrp.jpg') ;
I1 = rgb2gray(I) ;
I1(I1>200) = 0 ; % convert white background to black
[x,y] = find(I1~=0) ; % get the non zeros
plot(x,y,'.r') ;
set(gca,'ydir','reverse')
set(gca,'xdir','reverse')
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!