You can use the following command:
>> wavemngr(‘read’,1)
and, the result may be like:
Just some research notes.
– Function details can be found here:
http://www.mathworks.com/matlabcentral/fileexchange/8797-tools-for-nifti-and-analyze-image
– Some questions:
Question for image editing
I would like to modify the value of the masks I have created for my ROIs. I have downloaded your package, and successfully load et view one of my NIfTI file, but I don’t know how to change the value of the mask (e.g. from 1 to 2). (22-June-2011, Extracted from Adeline at Laboratoire d’Imagerie Fonctionnelle, France)
Answer
There are two ways to edit voxel value.
1. Using “view_nii.m” program:
You can use “view_nii.m” as an individual program. Navigate to the voxel that you want to change its value, and the crosshair will be moved to that voxel. Click “Edit” menu and then choose “Edit voxel value at crosshair”, the current voxel value will be displayed. Type the new number within the data type range. The data type can be obtained by click “Image Information” under “View” menu. For example, for 8-bit unsigned integer, its data type range is [0 255]. Now, you can see that the voxel gray level is changed. Finally, click “Save displayed image as” under “File” menu, you can have the modified image saved in NIfTI format.
2. Using command line:
Sometimes, you may want to change a lot of voxels to the same value. In this case, it’s better to do it in command line. First, load the original image: nii = load_nii(‘old_image.nii’); Then: nii.img(find(nii.img == old_value)) = new_value will change all old_value to new_value. Finally, save_nii(nii, ‘new_image.nii’) will save the modified image into ‘new_image.nii’.
For your particular case, I suggest you use command line to do so. Continued…
Posted in Uncategorized.
– October 8, 2012
The MATLAB installation directory can be found by executing the following in the MATLAB command prompt:
matlabroot
Starting from MATLAB 7.7 (R2008b), MATLAB default installation directory on the MAC OS is
/Applications/MATLAB_<Release>.app
where <Release> is the MATLAB Release’s version, i.e., R2008b, R2009a, etc.
The contents of the .app directory cannot be accessed by browsing through the ‘Set Path’ GUI in the File menu. To add the directories under .app directory to the path, use ADDPATH and SETPATH commands. For more information on the ADDPATH and SETPATH commands, please refer to the documentation by executing the following in the MATLAB command prompt:
help addpath
help setpath
You may need more information:
Posted in Uncategorized.
– October 8, 2012
Welcome to Columbia Blogs. This is your first post. Edit or delete it, then start blogging!
Posted in Uncategorized.
– October 5, 2012
Recent Comments