problem with malab addin while doing morphological thinning on a binary image

  • Follow


hi guys,
i am using Matlab addin in VC++ 6 for my project.
I am doing morphological thinning using bwmorph function.
The function runs fine if i compile it in matlab, but gives an error
( unhandled exception ....kinda stuff ) when i run it in VC++.

the code is ........

function a = thinning()

img = imread('output.bmp','bmp');
img2 = im2bw(img,0.5);
img3 = bwmorph(img2,'thin',Inf);    %%%% this line gives the problem
imwrite(img3,'output_t.bmp','bmp');

And moreover if  i make an standalone application of only this .m 
file then too the function runs fine, but gives error when i include 
it in a project.

If i comment the line ( bwmorph ) then the rest of the part runs 
fine ......

help me out guys ..
this is a part of my Image Processing course project.....
need help soon .

c ya soon
gfx
0
Reply gfx_sikander (7) 10/8/2003 2:50:19 PM


0 Replies
77 Views

(page loaded in 0.033 seconds)


Reply: