Create borders from dscalar.nii

26 views
Skip to first unread message

Austin Cooper

unread,
Aug 6, 2025, 1:59:22 PMAug 6
to HCP-Users
Hello!

I'd like to create a border file that I can overlay on top of any dscalar.nii file.

Right now I have 2 dscalar.nii files which contain relevant information: 1 contains vertex-wise ROI parcellations (where each vertex has a respective ROI value) and 1 contains binary statistics (all vertices with the same ROI value will either be equal to 1 (i.e. significant) or 0 (i.e. insignificant).

Is there a way of creating a border file around which can be overlaid on top of any dscalar.nii which has colored borders around the significant ROIs?

Hoping you can help :)


Austin

Tim Coalson

unread,
Aug 6, 2025, 5:56:58 PMAug 6
to hcp-...@humanconnectome.org
There is wb_command -cifti-label-to-border, if you are willing to make a proper dlabel file out of your multiple-integers map (-cifti-label-import).  It should also copy over the dlabel colors and area names.

There is an option without making a dlabel file: -cifti-separate to get single-hemisphere metric files of your binary maps, and then -metric-rois-to-border , but you'd have to add colors manually afterwards.

There is also a display option in wb_view for dlabel files (or any other label-type file) to only color the vertices at the edge of each label, which gives a border-like effect without making a border file.

Tim


--
You received this message because you are subscribed to the Google Groups "HCP-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hcp-users+...@humanconnectome.org.
To view this discussion visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/6fe401f7-497e-44a1-9f7f-478053e01057n%40humanconnectome.org.
Message has been deleted

Austin Cooper

unread,
Aug 8, 2025, 8:08:40 AMAug 8
to HCP-Users, tim.c...@gmail.com
Thanks a bunch, Tim!

-cifti-label-import along with the border editing within workbench did just the trick :)

Till next time!

Reply all
Reply to author
Forward
0 new messages