Some Matlab tools I use to read and write NIFTI and Dicom files. Can be optimised
changes dicoms into nifti Note that dcm2nii uses the dcm2nii tool by Chris Rorden: dcm2nii copyright disclaimer (Chris Rorden's MRIcron, all rights reserved.): Neither the name of the copyright owner nor the name of this project (MRIcron) may be used to endorse or promote products derived from this software without specific prior written permission.This software is provided by the copyright holder "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
zips files to save space
unzips files/folders