Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

color recognition using fft of image

Status
Not open for further replies.

pravish

Newbie level 5
Joined
Feb 25, 2006
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,354
hi .. i m new to frequency domain image filtering....i wanted to know....if i take the fft of the image how can i retrieve the coordinates of the pixel that has yellow color in the image....please help!
 

When you take a 2D fft of an image, you get information regarding spatial frequencies (i.e., how the pixel values are repeating from pixel to pixel), but there is no information regarding color. So you cannot use FFT for this purpose.

Instead what you can do is, in the spatial domain "yellow" color corresponds to certain values of R,G,B. Check each pixel if they belong to this range. If yes, then its a yellow pixel otherwise it is not.
 

Hello

This can be done at RGB level directly.

image=input('Enter the file name : ','s');
RGB = imread(image,'jpg');% only Jpeg images

R = RGB:),:,1);
G = RGB:),:,2);
B = RGB:),:,3);
%Sepetares the three components of the image

Yellow is formed by Red and Green combination
accordingly we can find the distribution of yellow pixels in an image.
 

Hello

This can be done at RGB level directly.

image=input('Enter the file name : ','s');
RGB = imread(image,'jpg');% only Jpeg images

R = RGB:),:,1);
G = RGB:),:,2);
B = RGB:),:,3);
%Sepetares the three components of the image

Yellow is formed by Red and Green combination
accordingly we can find the distribution of yellow pixels in an image.

12_1161254390.jpg
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top