How to find rgb image edge detection using component gradient operator?

1 回表示 (過去 30 日間)
Priyanka
Priyanka 2012 年 4 月 2 日
In my project there is RGB image edge detection using component gradient operator in this one arbitrary vector is defind. p is an arbitrary vector in RGB color space: P=[ Pr Pg Pb]=[r g b] This equation indicates that the components of p are simply the RGB components of a color image at a point. We take into account the fact that the color components are a function of coordinets rdinates (x, y) by using the notion: P=[ Pr(i,j) Pg(i,j) Pb(i,j)]=[r(i,j) g(i,j) b(i,j)] The sobel gradient operator of the R ,G and B component is given by the equations: Gver(i,j)=(P(i-1,j-1)+2.*P(i-1,j)+P(i-1,j+1))-(P(i+1,j-1)+2.*P(i+1,j)+P(i+1,j+1));
Ghor(i,j)=(P(i-1,j-1)+2.*P(i,j-1)+P(i+1,j-1))-(P(i-1,j+1)+2.*P(i,j+1)+P(i+1,j+1)); eqauation for laplacian and laplace with angle element according there masks are lap1(i,j)=5.*P(i,j)-(P(i+1,j)+P(i-1,j)+P(i,j+1)+P(i,j-1));
di(i,j)=(P(i+1,j-1)+P(i+1,j+1)+P(i-1,j+1)+P(i-1,j-1)+P(i+1,j)+P(i-1,j)+P(i,j+1)+P(i,j-1))-8.*P(i,j); I am not understand that how to define this arbitrary vector P and how to impliment these equations in matlab.

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by