Apparent problem with ncell #245
-
Hi, Here is an example of such case (ncell =0 ) with every option except with position_threshold='extreme': The other issue is that the mask output from segmentation does not always coincide with the ncells. I saw this especially when the ncells are < 200. For example, for a given timestep the dataframe shows features with ncells = 21. However, when looking at the mask, some are absent, others have sizes much larger than those correspondent to 21. Here the plot correspond to features 30 and 31: I created a repository in my account with the scripts and subsets of my data in case you want to reproduce these results. (https://github.com/laurapaccini/test_tobac) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thank you for the careful report of this, @laurapaccini! The first issue is a behavior of the segmentation in The second issue looks like a potential bug to me. I will have a closer look into your example notebook and move this question to our issues ! |
Beta Was this translation helpful? Give feedback.
Thank you for the careful report of this, @laurapaccini!
The first issue is a behavior of the segmentation in
tobac
that we have recognized before and described in more detail on our documentation page: https://tobac.readthedocs.io/en/latest/features_without_segmented_area.html As you found out correctly, this behavior can be avoided when settingposition_threshold='extreme'
. Alternatively, you could set the segmentation threshold slightly higher than your feature detection threshold. This is because the feature detection will detect features that areequal to or larger
than your threshold, while the segmentation procedure only includes areaslarger than
the segmentation threshold.The se…