Lehane
Mechanical
- May 2, 2011
- 6
I am trying to analyse an image in Matlab and need to be able to see the left edge of the image. At the moment I add a 1 pixel border to the image (or just to the left side) in a photo program like Gimp. This is time consuming so I'm looking for a way to get Matlab to add the border for me.
At the moment I use
dispIm = imread(file,'tif');
imshow(dispIm);
Which then opens the image ready for analysis. What code can I add to add the black border?
At the moment I use
dispIm = imread(file,'tif');
imshow(dispIm);
Which then opens the image ready for analysis. What code can I add to add the black border?