...
Code Block |
---|
% ------------------------------- % % Download a NRRD reader % For example: % http://www.mathworks.com/matlabcentral/fileexchange/34653-nrrd-format-file-reader % % Requires: MATLAB 7.13 (R2011b) % % Download average_template_25.nrrd, % ara_nissl_25.nrrd, % ccf_2015/annotation_25.nrrd % % --------------------------------- % % Read image volume with NRRD reader % Note that reader swaps the order of the first two axes % % AVGT = 3-D matrix of average_template % NISSL = 3-D matrix of ara_nissl % ANO = 3-D matrix of ccf_2015/anntotation % [AVGT, metaAVGT] = nrrdread('average_template_25.nrrd'); [NISSL, metaNISSL] = nrrdread('ara_nissl_25.nrrd'); [ANO, metaANO] = nrrdread('annotation_25.nrrd'); % Display one coronal section figure;imagesc(squeeze(AVGT(:,264,:)));colormap(gray(256)); axis equal; figure;imagesc(squeeze(NISSL(:,264,:)));colormap(gray(256)); axis equal; figure;imagesc(squeeze(ANO(:,264,:))); caxis([1,2000]); colormap(lines(256)); axis equal; % Display one sagttialsagittal section figure;imagesc(squeeze(AVGT(:,:,220)));colormap(gray(256)); axis equal; figure;imagesc(squeeze(NISSL(:,:,220)));colormap(gray(256)); axis equal; figure;imagesc(squeeze(ANO(:,:,220))); caxis([1,2000]); colormap(lines(256)); axis equal; |
...
Overview
Content Tools
ThemeBuilder