ROI selection and Colour bar colours

98 views
Skip to first unread message

Davide

unread,
Dec 8, 2020, 11:44:05 AM12/8/20
to xjView discuss group
Hi,
Thanks for your great work with XjView, it is a very intuitive software!

I wonder if (and eventually how) I can do the following things:
- define the colours of the colour bar;
- load a ROI. I saw that I can select an overlay, which is great, but that changes the colours of the activation map and does not really hide activation clusters outside of the ROI (it just makes them light grey).

Any chance I can do these things?

Best,
Davide

Xiaowei Song

unread,
Dec 8, 2020, 5:06:38 PM12/8/20
to xjview-dis...@googlegroups.com
Yes, I think you can change the colorbar to any color mapping by directly modifying the code of xjview.m.
For example, in the 9.7 version of xjView.m, modifying the following line should do the trick:
7388th line: handles.colormap = colormap;

Or another trick would be to create your own colormap.m in current MATLAB path to intercept MATLAB's original colormap command.

For your 2nd question, my understanding is that you want use the "ROI" as a mask to remove all voxels outside of the ROI? Am I right? If this is the case, you might be able to do this with many ways. Such as using AFNI's 3dcalc: 3dcalc -a yourResult.nii -b mask.nii -expr "a*step(b)" -prefix maskedResult.nii .

Best,
Xiaowei

--
You received this message because you are subscribed to the Google Groups "xjView discuss group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xjview-discuss-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xjview-discuss-group/fee2b229-e5d3-49cc-84b0-a06755de7f22n%40googlegroups.com.


--
Best,
Xiaowei Song 
Reply all
Reply to author
Forward
0 new messages