Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 35

...

Example Matlab code snippet to read in the 100 µm density grid volume:

   

...

%

...

Download

...

and

...

unzip

...

the

...

density

...

grid

...

file

...

for

...

VISp

...

SectionDataSet   

Wiki Markup
&nbsp;&nbsp;&nbsp; <span style="color: #339966">% 100 micron volume 

...

size</span>
&nbsp;&nbsp;&nbsp; sizeGrid = \[133 81 115\];
&nbsp;&nbsp;&nbsp; <span 

...

style="color: #339966">% DENSITY = 3-D matrix of projection density grid 

...

volume</span>
&nbsp;&nbsp;&nbsp; fid = fopen('density.raw', 'r', 'l' 

...

);
&nbsp;&nbsp;&nbsp; DENSITY = fread( fid, prod(sizeGrid), 'float' );

...

&nbsp;&nbsp;&nbsp; fclose( fid );

...

&nbsp;&nbsp;&nbsp; DENSITY = reshape(DENSITY,sizeGrid)

...

;

Wiki Markup
&nbsp;&nbsp;&nbsp; <span style="color: #339966">% Display one coronal and one sagittal 

...

section</span>
&nbsp;&nbsp;&nbsp; figure;imagesc(squeeze(DENSITY (95,:,\:)));caxis(\[0,1\]);colormap(hot);

...

&nbsp;&nbsp;&nbsp; figure;imagesc(squeeze(DENSITY (:,:,72)));caxis(\[0,1\]);colormap(hot);

...

      

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Projection Structure Unionization

...