mrirecon / bart-workshop

Material for BART demos.
49 stars 21 forks source link

Using Bart bitmask in MATLAB #9

Closed adithyaOvGu closed 4 years ago

adithyaOvGu commented 4 years ago

I am fairly new to BART, therefore I am learning how to reconstruct MR images using BART in MATLAB from the workshop materials. When there is a command such as ;

"bart reshape $(bart bitmask 1 2) 256 1 tmp grid" how does it translate to MATLAB script?

I am using the following command in MATLAB; "grid = bart('reshape 512 1', tmp)"

but I am not sure where to enter the bitmask part. I kindly request you to provide some insight/solutions for this issue.

adithyaOvGu commented 4 years ago

Found the solution long back, forgot to close this issue.

To create mask value: MASK1 = str2double(evalc("bart('bitmask 1 3')")); To use mask value in command: shepp_flat = bart(sprintf('reshape %i 720 1 ',MASK1), shepp);

Found the solution in the mailing list, thanks for the support.