matlab - need a good edge detection procedure for rough surfaced overlapped objects -



matlab - need a good edge detection procedure for rough surfaced overlapped objects -

i need observe border shape detection in project. using matlab comfertable opencv if gives improve output. here problem. sample image have has overlapped objects rough surface. using code , getting output roughness of surface still makes degrades output. amusing code in matlab:

a = imread('d:\images\wheatstarch.jpg'); = rgb2gray(a); imshow(i) thresold = graythresh(i); se1=strel('diamond',2); i1=imerode(i,se1); bw = edge(i1,'canny'); figure; imshow(bw);

i getting output: http://i49.tinypic.com/vg7fns.png

ineed improve output such can utilize output shape detection.

input image download http://www.profimedia.si/photo/wheat-starch-granules/profimedia-0035237439.jpg

playing file in photoshop, photoshop find edges edges followed levels command gives output much more looking for. i'm not suggesting utilize photoshop, photoshop handy tool visualizing methods process graphics files. write own code, can't suggest off shelf solution.

what i'm seeing photoshop's find edges gives grayscale result of border hardness , objects looking ones hardest edges.

what appears getting image first converted b&w (like level command), finding edges. conversion b&w creating arbitrary lines in shadows, beingness traced. resulting in appears in original image smooth transition of grays in shadow artificial line in tracing.

by creating edges in grayscale, converting grayscale edges b&w, smooth shifts of grayness not produce edges.

matlab opencv image-processing edge-detection

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -