visualizing multi_class after doing one-hot in preprocessing #1165
-
Hello, |
Beta Was this translation helpful? Give feedback.
Answered by
romainVala
Apr 18, 2024
Replies: 1 comment 3 replies
-
Hello |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Nastii22
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
For visualisation I use the torchio Image save funtion to save it as a 4D nifti file
subject.label.save('oneHot4D.nii')
(if the subject tag of the image is "label" )and then you can go to any nifti viewer (Slicer / itksnap / fsleyes (from FSL) / mrview (from mrtrix) / freeview (from Freesurfer)