Skip to content
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

crc_meanHausdorffDist normalization #6

Open
CPernet opened this issue Jul 12, 2016 · 3 comments
Open

crc_meanHausdorffDist normalization #6

CPernet opened this issue Jul 12, 2016 · 3 comments

Comments

@CPernet
Copy link
Collaborator

CPernet commented Jul 12, 2016

Hey Chris,

could you add a normalization factor ? last time i think we agreed on dividing by the total number of voxels from one of the images so that max is 1

cheers

@ChristophePhillips
Copy link
Member

Thinking of the issue with large values for the Haussdorff distance, it's not that simple.
My impression is that when a cluster is missing, then you end up with large H-distance. In other words the H-distance only provides useful information (how well do blob contours match) when there is a match between the blobs. We could condition the H-distance to only matching blobs?

Let me come up with a demo case and some tests. :-)

@CPernet
Copy link
Collaborator Author

CPernet commented Jul 14, 2016

ok not sure I follow here - what I talking about is that between subjects we have comparable values
so in the loop I add
if normalize
D12 = D12 ./ max(D12);
D21 = D21 ./ max(D21);
end

@ChristophePhillips
Copy link
Member

ChristophePhillips commented Jul 15, 2016

I do not think this is the right way to deal with the very variable H-dist values returned. The distance is expressed in mm, averaged over the contours of the blobs in the pair of images. This thus some "absolute" measure. If it's big, then it means some border was, on average, very far away from a border in the other image. :-(
In fact H-dist is only useful when the blobs in both images are matching, like here. On the other hand if the blobs are not overlapping at all, then H-dist doesn't mean much at all, only how far away (on average) the borders of 2 non-overlapping blobs are located which boils down to about the distance between their centre of gravity. See the test with img3 and img3b in testing_imgOverlap.m. (Available in the branch MPMextendedTPM.)

Possible solution:
Only calculate the H-distance for blobs that are matching across the images. Then the measure would only be interpretable in combination with the cluster TP/FP counts...

ChristophePhillips referenced this issue Nov 21, 2016
updated in the inputs for normalization and display
also added the inner loop for normalization - but this one is likely
wrong
ChristophePhillips added a commit that referenced this issue Oct 26, 2017
Adding the "subcortex wo BG" (#5) and "BG only" (#6) masks
Fixing small error in other mak generation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants