nrrdWriter(filename​, matrix, pixelspacing, origin, encoding)

버전 1.2.0.0 작성자: mdcacio
This function writes imagery and metadata to .nrrd or .nhdr medical imaging format files.
다운로드 수: 2K
업데이트 날짜: 2014/12/3

라이선스 보기

This is a complement of the function nrrdread, "NRRD Format File Reader by Jeff Mather". It does exactly the opposite: it's a NRRD files writer.
- With filename it's possible to set the path, the filename and the format (nrrd or nhdr+data). For example, a filename like '/home/mariodiaz/testfile.nhdr' will create the file at the folder /home/mariodiaz, its filename will be testfile, and it will create the header (.nhdr) appart from the data (.raw, gzip,... depending on the encoding).
- matrix is the data to put into the file. It will also set some fields at the header like dimension, space dimensions, size, type, etc.
- Pixel spacing is equivalent to the output file voxel width and should be defined as [psx, psy, psz]
- Origin should be set to [0,0,0] by default (otherwise coordinates will be shifted)
- Encoding sets data encoding. 'raw', 'ascii' or 'gzip' available.

인용 양식

mdcacio (2025). nrrdWriter(filename, matrix, pixelspacing, origin, encoding) (https://kr.mathworks.com/matlabcentral/fileexchange/48621-nrrdwriter-filename-matrix-pixelspacing-origin-encoding), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Import and Analysis에 대해 자세히 알아보기
도움

도움 준 파일: nrrdmeta2num(imgh)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

- Fixed a little bug when path is not set up at nhdr option.

1.1.0.0

Little explanation about input parameters.

1.0.0.0