-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dice_average.m and compute size of polyp #4
Comments
Hi! How did you use the function, and what errors have you got? Please carefully read the annotations in the code. Note: the arrays AreaR and Dice should have the same length. For i-th case, AreaR(i) is the area ratio (see code comments for its computation) of objects in the image of i-th segmented ground truth (the binary label), Dice(i) is the Dice coefficient computed by using the i-th predicted segmentation result and its ground truth. bin_width depends on the distribution of AreaR. To your second question, yes, the x-axis means the relative size = # of pixels of polyp / # of total pixels of the image. |
Thanks for the reply. I also input just AreaR,threshold_Dic in the function for a test ,but the results is the same. |
Hi, you don't need to add those code into main.m, because they are for different purposes. The matlab codes in fold eval are used to evaluate the segmentation results by 6 different measurement metrics. The dice_average are used to analyze the relationship between object size and dice accuracy. |
Thanks for the reply. |
(bin_width depends on the distribution of AreaR, what does this means?Do I need compute or just input 0.05) ,and put them in arrays, then run dice_average in command window? -- Yes, or put it in your codes; just like other Matlab functions. |
dice average (mDice), please refer to the code from segmentation. https://github.com/open-mmlab/mmsegmentation/blob/master/mmseg/core/evaluation/metrics.py |
Hi, I wonder to know how can I use the dice_average.m to compute the relationship between dice and the size of polyps. I'm not familiar with matalab , but dice_average.m seems only has a defined function ,I try to call this function in main.m files, but failed. Besides, I also curious about how did you compute the ratio of polyps , does the x axis 0,1,2,3,4,5,6 means the relative size ?
The text was updated successfully, but these errors were encountered: