Calculation of uncertainty maps

Hi everybody,

I was wondering how exactly the uncertainty maps (for example in the pixel classification), generated by Ilastik, are calculated? For a given voxel: does Ilastik simply divide the number of trees, voting for each other phase, by the number of trees voting for the phase that the voxel was segmented as? Here’s one example, if my explanation was unclear :smiley: 10 Trees voted a voxel to belong to phase 1, 10 Trees voted for phase 2 and 80 Trees voted for phase 3. So the uncertainty would be 20/80 = 0.25.

Thanks in advance,

Hello @mreinh05,

welcome to the community!

uncertainty is calculated by subtracting the two highest votes (and subtracting that from 1) for a pixel. In your example it would be uncertainty = 1 - (0.8 - 0.1) = 0.3.


1 Like

Wonderful! Thank you very much for the clear and quick answer!