transformed color space in matlab
Show older comments
The transformed color space (R’, G’, B’) is defined as follows:
R' = R-mean®/sd®,
G' = R-mean(G)/sd(G),
B' = R-mean(B)/sd(B), where mean and sd(standard deviation) of color channels C computed over whole image where C which belongs to (R,G,B).
I have to apply transformed color space to find the relationship b/w the pair of sampled points.
Suppose P(i)Cm are the values of color channel cm which belongs to (R’, G’, B’) of the sampled point cm and P(j)Cn are the values of color channel cn which belongs to (R’, G’, B’) of the sampled point cn where p(i)=(xi,yi) and p(j)=(xj,yj)
if P(i)Cm < P(j)Cn
then 1
else 0
where cm and cn can be (R',R')(R',G'),(R',B'),(G',G'),(G',B')(B',B')
3 Comments
Image Analyst
on 19 Jan 2016
How are you specifying i and j? Are you using ginput()? Why do you want to compare the difference between one point in one color channel to a point at a different location in a different color channel?
Image Analyst
on 20 Jan 2016
I'm sorry but I'm having trouble visualizing this. Please attach a diagram or picture.
Answers (0)
Categories
Find more on Elementary Polygons in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!