clc;clear all;I=imread('thumb.jpg');figure, imshow(I);[r c]=size(I);imshow(I); for i=1:1:r for j=1:1:c if I(i,j) > 127 I1(i,j)=255; else I1(i,j)=0; end endendfigure, imshow(I1);I2=I1(1:56, 1:122);I3=I1(57:113, 1:122);I4=I1(114:170, 1:122);figure, imshow(I2);figure, imshow(I3);figure, imshow(I4);Ip=[I1, I2, I3];imshow(Ip);
MATLAB: I have three image parts and i want to add them and get three images back,but i getting an error due to sizes of matrix is different
image processingmatrix manipulation
Related Question
- Convolution giving decimal point in the result
- Edge detection in image processing
- In the code below can we make freehand drawing of the line instead of straight line
- Hello… the problem is i have 4 images…i need to subtract an image 2 with image 1, image 3 with image 1 and image 4 with image 1…so how can i do this process in one loop
- What was the source code for image encryption and decryption
Best Answer