Professional Documents
Culture Documents
>> I2 = imread('cropped_building.png');
Error using imread (line 349)
File "cropped_building.png" does not exist.
>> I2 = imread('cropped_building.png');
Error using imread (line 349)
File "cropped_building.png" does not exist.
>> I2 = imread('cropped_building.png');
>> imshow(I2)
>> imtool(I)
>> I2 = imread('cropped_building.png');
>> imshow(I2)
>> x1 = 194; x2 = 205; y1 = 109; y2 = 154;
>> xmin = x1; ymin=y1; width = x2-x1; height = y2-y1;
>> I3 = imcrop(I, [xmin ymin width height]);
>> imshow(I3)
>> imshow(I3)
>> I_big1 = imresize(I,3);
>> figure, imshow(I), title('Original Image');
>> figure, imshow(I_big1), title('Enlarged Image w/ bicubic interpolation');
Warning: Image is too big to fit on screen; displaying at 67%
> In images.internal.initSize (line 71)
In imshow (line 305)
>> imtool(I_big1)
>> % go
>> I_big2 = imresize(I,3,'nearest');
>> I_big3 = imresize(I,3,'bilinear');
>> figure, imshow(I_big2), title('Resized w/ nearest-neighbor interpolation');
Warning: Image is too big to fit on screen; displaying at 67%
> In images.internal.initSize (line 71)
In imshow (line 305)
>> figure, imshow(I_big3), title('Resized w/ bilinear interpolation');
Warning: Image is too big to fit on screen; displaying at 67%
> In images.internal.initSize (line 71)
In imshow (line 305)
>> imtool(I_big1)
>> figure, imshow(I_big1), title('Enlarged Image w/ bicubic interpolation');
Warning: Image is too big to fit on screen; displaying at 67%
> In images.internal.initSize (line 71)
In imshow (line 305)
>> figure, imshow(I_big2), title('Resized w/ nearest-neighbor interpolation');
MATLAB Command Window Page 2