i am working on project of edge detection and i am using fuzzy logic the problem i am facing is that i want to detect the without using rgb colour code ,means i want to detect the edge and also i want that the color of the image also appear in output

조회 수: 1 (최근 30일)
Igray = 0.2989*Irgb(:,:,1)+0.5870*Irgb(:,:,2)+0.1140*Irgb(:,:,3);
figure image(Igray,'CDataMapping','scaled'); colormap('gray') title('Input Image in Grayscale') I = double(Igray); classType = class(Igray);

답변 (1개)

Image Analyst
Image Analyst 2017년 10월 15일
Try the edge() function on the gray scale image.
  댓글 수: 3
Image Analyst
Image Analyst 2017년 10월 15일
Call the Mathworks. The edge() function should definitely work. Does it throw an error when you call it, like it says there is no such function? Tech support can help you reinstall and walk you through a simple example to make sure that edge() works, and that you have a license to use the Image Processing Toolbox. What does this say
>> which -all edge
It will show if you have some other m-file, like one you wrote, that is causing the built-in edge() function to not work.
AKSHAY VARSHNEY
AKSHAY VARSHNEY 2017년 10월 15일
I=rgb2gray(i); BW1 = edge(I,'canny'); sir in this code as rgb2gray will convert the image into 2d and it will convert the coloured image into gray scale but sir i want the edge to be detected and also in my output contains the colour in the image. i have attached an image in this i want the edge detected and i also want that my output shows the colour in particular band of a given image

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by