I want to interpolate extracted ROI. Please help me with coding.
2 ビュー (過去 30 日間)
古いコメントを表示
p= imread('knee.jpg');
figure;
imshow(p);
img = imcrop;
k=imshow(img);
imwrite(k,'knee2.jpg');
z=imread('knee2.jpg');
figure;
[x,y]=meshgrid(1:256,1:256);
a=2;
for i=1:256;
for j=1:256;
x1(i,j)=a*x(i,j);
y1(i,j)=y(i,j)/a;
end
end
% Do the interpolation
z1=interp2(x,y,z,x1,y1,'bilinear');
imshow(z1);
4 件のコメント
John D'Errico
2016 年 1 月 19 日
Linear interpolation will not improve image quality. That only works in the TV shows, where you can blow up a single pixel into a readable picture of a license plate. Any problems that were in the original will still be there, with sometimes new artifacts introduced.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!