ReSample Mask in REST

I public a mail concerning about how to resample a mask when defining a ROI.

The script is attached at the end of this topic and should save as "rest_reSample3D.m".

It is just used to do with mask, and no warranty I could give, although Bui verified the script and it worked.

The way of using this resample script is to put it in REST's directory and

Result Mask=rest_reSample3D(Original Mask, You Desired Dimension);

Examples could be reviewed in the following mail.

Just a Quick Suggestion at Midnight!

Hi My Friends,

I am saying hi to you guys all. Long time no visiting the forum, sorry, recent life is really filled with all things. Just go through all posted messages and push a possible step for REST:

Perhaps it is a pretty good idea for adding task-data-based functional connectivity into REST, i mean functional cnnectivity and ReHo, ALFF/fALFF all these stuff can also be made bu such a way. Look the requests from users from their posts.

All In Advances

Xi-Nian