Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Emergency situation

Status
Not open for further replies.

mona:)

New Member
hi buddies
i am in an emergency situation , i must divide an image into some image with same size as original one in matlab without using for loop!
could anyone help me?
here is the code i used but didn't work...

imagepath='forest.tif'
[I map]=imread(imagepath);

Ig=I;
if ~isempty(map)
Ig=ind2gray(I,map);
elseif length(size(I))==3
Ig=RGB2gray(I);
else
Ig=I;
end;
I1=I<100;
I2=100=< I<160;
I3=I>=160;
imshow(I2)
 
And the emergency is???? Let me guess, homework assignment is due.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top