Monday, January 23, 2012

Matlab program to calculate the percentage of RGB in a picture?

hai,

can anyone tell me how to get a matlab progrma to calculate the percentage of RGB colors ina picture.In my pictures i have to remove pictures that are in bad quality.If it possible it would be fine to know the percentage of all yellow,blue,green,red etc colors.please give me the solution.but i need teh solution asa matlab programing.

thank you

karthik muniasamyMatlab program to calculate the percentage of RGB in a picture?
I would use p=imread(filename,format) to get your photo into matlab as a 3D matrix.



p(:,:,1) contains the red values

p(:,:,2) the green

p(:,:,3) the blue







best of luck - Mike
  • trade in value
  • cb radio
  • No comments:

    Post a Comment