Rank: 23740 based on 0 downloads (last 30 days) and 0 file submitted
photo

osunmbs unduo

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by osunmbs View all
Updated File Comments Rating
09 Aug 2011 Maximum Inscribed Circle using Distance Transform Approximately computes the largest inner circle of a contour/region using distance transform Author: Tolga Birdal

ok, tnks,i'll try dis out

08 Aug 2011 Maximum Inscribed Circle using Distance Transform Approximately computes the largest inner circle of a contour/region using distance transform Author: Tolga Birdal

@ Tolga, can u pls check the last two lines if correct in creatind the mask to crop out the portion in the circle. Although, the last line is giving error
<??? Attempt to reference field of non-structure array.

Error in ==> max_inscribed_circle at 106
binaryImage =Cin.createMask();>

figure,imshow(BW,[]);
hold on
plot(X,Y,'r','LineWidth',2);
theta = [linspace(0,2*pi) 0];
hold on
AA=cos(theta)*R+cx; BB=sin(theta)*R+cy;
plot(AA,BB,'color','g','LineWidth', 2);

Cin =inpoly([X,Y],[AA(:),BB(:)]);
binaryImage = Cin.createMask();

thanks

07 Aug 2011 Maximum Inscribed Circle using Distance Transform Approximately computes the largest inner circle of a contour/region using distance transform Author: Tolga Birdal

@Tolga , can u be more explicit on creating the mask. Hoe do i use inpoly for dis. Though i tried using the createMask function but realized that d input to match with represent the total circle corodinates, thus not working.
Kindly shed more light
Thanks S M

01 Aug 2011 Maximum Inscribed Circle using Distance Transform Approximately computes the largest inner circle of a contour/region using distance transform Author: Tolga Birdal

@ Tolga;the code is worhing perfectly but pls i'm still expecting ur reply to my latest question tanks.

31 Jul 2011 Maximum Inscribed Circle using Distance Transform Approximately computes the largest inner circle of a contour/region using distance transform Author: Tolga Birdal

problem solved . tnks, however i want to ask , is the use of bwtraceboundary only for unit8 images cos i guess that was my problem. After converting my logical im back to unit8, d code ran perfectly.
Also, how do i crop out the content of the circle with a link to d initial binary image or the original image.
Thanks for ur time

Contact us