作者FaFaFaT (肥肥肥T)
看板MATLAB
标题[讨论] 画rectangle问题
时间Mon Jan 16 20:06:28 2017
我现在有许多rectangle的座标
我想要把他们画在影像上然後储存
a=imread([ int2str(i) '.jpg']); % i张影像
b=figure(1);
imshow(a);
hold on
for j=1:3
rectangle('Position',data(j),'EdgeColor','r','LineWidth',2); % j个rectangle
end
使用saveas 或着print 都会有白边而且尺寸与原影像不同
使用imwrite 尺寸相同 但是rectangle会上不去 也就是纯粹输出原始影像
有没有什麽解法呢?
--
sent from my asshole
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.113.149.33
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MATLAB/M.1484568394.A.215.html
1F:推 sunev: rectangle後应该就不是矩阵了,而是matlab的内定格式,figure 01/17 15:49