Rank: 49 based on 635 downloads (last 30 days) and 6 files submitted
photo

Jimmy Shen

E-mail
Company/University
Rotman Research Institute

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Jimmy View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Sep 2011 Screenshot Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen analyze, nifti, image, medical, isotropic, niftl 473 91
  • 4.57143
4.6 | 29 ratings
28 Mar 2011 Screenshot Edit plotted data with mouse Edit plotted data by picking any point on the curve and moving the mouse. Author: Jimmy Shen graphics, gui, demo, mouse movement, edit data 13 0
22 Feb 2011 Load BIOPAC ACQ (AcqKnowledge for PC) data Load BIOPAC's *.acq file (AcqKnowledge for Windows data format). Author: Jimmy Shen medical, biopac acqknowledge, acq, eeg, file, data 34 14
  • 4.71429
4.7 | 7 ratings
17 Aug 2010 geotiffwrite Write a 2D or 3D array to a single or multi-band GeoTIFF file Author: Jimmy Shen earth sciences, gis, earth science, gps, image, write 52 11
  • 5.0
5.0 | 6 ratings
16 Apr 2009 Screenshot Resampling volume or image with affine matrix Use affine matrix to convert 3D vol or 2D img to orthogonal one with corresponding affine matrix. Author: Jimmy Shen 2d, affine, 3d, image, volume, voxel 48 5
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Jimmy View all
Updated File Comments Rating
17 Jan 2012 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen

I never have such a function called "read_nii_img". Please read all functions and usages from:

http://www.rotman-baycrest.on.ca/~jimmy/NIfTI

19 Dec 2011 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen

It seems that "load_nii_hdr" in "apply_fsl_transformation_matrix" has been modified. It should look like this "function [hdr, filetype, fileprefix, machine] = load_nii_hdr(fileprefix)". i.e. It should have 4 output arguments, which is exactly the same amount as "load_untouch_nii" asked for.

16 Dec 2011 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen

NIfTI supports both ".nii" and ".img/.hdr" file extension. If you do not provide any file extension, it will look for ".img/.hdr" files by default. Therefore, you can easily solve your problem by provide appropriate file extension. e.g. nii = load_nii('filtered_func_data.nii');

22 Nov 2011 geotiffwrite Write a 2D or 3D array to a single or multi-band GeoTIFF file Author: Jimmy Shen

Please notice that the values in colormap range from 0 to 65535 (instead of from 0 to 1). So black is represented by [0 0 0], and white is represented by [65535 65535 65535]. If you put [1 1 1], it will be black. Please see more details from my web site: http://www.rotman-baycrest.on.ca/~jimmy/geotiffwrite

20 Oct 2011 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen

I assume that you have a series of 3D NIfTI (or Analyze) files with the same header information (i.e. same dimension, voxel size, originator, ... etc.), and you want to integrate it into a single 4D file with time series in the file.

If this is the case, you can use my "collapse_nii_scan.m" to do so. Type help collapse_nii_scan to get more information.

For file extension, this function will follow whatever you have. i.e. you will still get a single .hdr/.img file afterwards.

Since all NIfTI compatible software should be able to load a 4D NIfTI (or Analyze) file, we do not support any conversion from .hdr/img to .nii file.

Comments and Ratings on Jimmy's Files View all
Updated File Comment by Comments Rating
17 Jan 2012 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen Shen, Jimmy

I never have such a function called "read_nii_img". Please read all functions and usages from:

http://www.rotman-baycrest.on.ca/~jimmy/NIfTI

17 Jan 2012 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen Bernard, Jessica

I've found recently, now that we have upgraded to Matlab 2011a, that many of these functions no longer work properly. When using read_nii_img we are now getting an error saying:

??? Undefined function or method 'read_nii_img' for input arguments of type 'char'

We had successfully run these programs before, but since the update they have not been working. Do you have any suggestions to perhaps work around this? Thanks much!

19 Dec 2011 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen Shen, Jimmy

It seems that "load_nii_hdr" in "apply_fsl_transformation_matrix" has been modified. It should look like this "function [hdr, filetype, fileprefix, machine] = load_nii_hdr(fileprefix)". i.e. It should have 4 output arguments, which is exactly the same amount as "load_untouch_nii" asked for.

19 Dec 2011 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen Michael

Hi,

using 'load_nii_hdr' within 'load_untouch_nii' I get the following error message:

??? Error using ==> load_nii_hdr
Too many output arguments.

Error in ==> load_untouch_nii at 103
[nii.hdr,nii.filetype,nii.fileprefix,nii.machine] = load_nii_hdr(filename);

Error in ==> apply_fsl_transformation_matrix at 5
vox = load_untouch_nii('/SCR2/DTI/det_track/BM3K/trans/Sem_fun_roi.nii');

Thanks for your help!

Michael

16 Dec 2011 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen Shen, Jimmy

NIfTI supports both ".nii" and ".img/.hdr" file extension. If you do not provide any file extension, it will look for ".img/.hdr" files by default. Therefore, you can easily solve your problem by provide appropriate file extension. e.g. nii = load_nii('filtered_func_data.nii');

Top Tags Applied by Jimmy
image, 3d, format, graphics, medical
Files Tagged by Jimmy View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Sep 2011 Screenshot Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen analyze, nifti, image, medical, isotropic, niftl 473 91
  • 4.57143
4.6 | 29 ratings
28 Mar 2011 Screenshot Edit plotted data with mouse Edit plotted data by picking any point on the curve and moving the mouse. Author: Jimmy Shen graphics, gui, demo, mouse movement, edit data 13 0
22 Feb 2011 Load BIOPAC ACQ (AcqKnowledge for PC) data Load BIOPAC's *.acq file (AcqKnowledge for Windows data format). Author: Jimmy Shen medical, biopac acqknowledge, acq, eeg, file, data 34 14
  • 4.71429
4.7 | 7 ratings
17 Aug 2010 geotiffwrite Write a 2D or 3D array to a single or multi-band GeoTIFF file Author: Jimmy Shen earth sciences, gis, earth science, gps, image, write 52 11
  • 5.0
5.0 | 6 ratings
16 Apr 2009 Screenshot Resampling volume or image with affine matrix Use affine matrix to convert 3D vol or 2D img to orthogonal one with corresponding affine matrix. Author: Jimmy Shen 2d, affine, 3d, image, volume, voxel 48 5
  • 4.66667
4.7 | 3 ratings

Contact us at files@mathworks.com