How do you change pixels in an image?
Ältere Kommentare anzeigen
i want to get the difference between two pixel and then i want to chang pixel value to become yellow . please help!!!!
Antworten (3)
Jan
am 19 Feb. 2012
The question is not clear. Are you talking about RGB images? Which pixel should be set to yellow? Perhaps this helps:
image1 = rand(100,100,3);
image2 = rand(100,100,3);
diffPixel = image1(51,67,:) - image2(51,67,:);
image1(51,67,:) = [1, 1, 0];
3 Kommentare
Isee You
am 19 Feb. 2012
Image Analyst
am 19 Feb. 2012
Try this first: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Then come back and tell us which two pixels you want to take the difference of and which pixels you want to set to yellow. Do you want to convert your gray scale image to RGB color now? Or do you want to apply a colormap? Do you have any photos that you uploaded to tinypic.com that you can show us? You need to put some work into your question, more than 10 seconds anyway. Because as I see it, Jan has answered your question. If not, you need to explain why.
Isee You
am 24 Feb. 2012
Isee You
am 21 Feb. 2012
0 Stimmen
3 Kommentare
Image Analyst
am 22 Feb. 2012
Do you mean the dark part between the outer body wall and the internal organs?
Isee You
am 22 Feb. 2012
Image Analyst
am 22 Feb. 2012
Give us some code to start with. I don't want to develop the whole app from scratch for you.
Kategorien
Mehr zu Read, Write, and Modify Image finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!