[ENH]: Add non zero mean as an aggregation function for structural images #219
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer#219
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Are you requiring a new dataset or marker?
Which feature do you want to include?
How do you imagine this integrated in junifer?
additional parameter
Do you have a sample code that implements this outside of junifer?
Anything else to say?
no
Can you provide more information as requested (e.g. by properly filling the issue template)?
np.nonzerogives the indexes of the non-zero elements.Also, doing a non-zero mean of floating point values will only work if values are exactly 0.
0 values indicate those voxels that despite belonging to a parcel they are certainly not part of tissue of interest. Therefore, should not be involved in the mean process. A cut-off value could also be a more general solution (eg a threshold applied in the tissue of interest).
By 0 values, do you mean voxels where the actual data is 0 (or below some threshold) or do you mean voxels where they are 0 (or below some threshold) in an additional probabilistic mask?
I still do not get how this would be preferred instead of using a GM mask or something like that.
It's just basically thresholding whatever values you will aggregate.
How will this work with timeseries?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.