Skip to content

How do I?

Rob Campbell edited this page Jul 26, 2019 · 9 revisions

How do I pre-process the data?

To pre-process all data from channels 1 to 3 run:

preProcessTiles([],'illumChans',1:3)

This will calculate average tiles for each section as well as various stats that can be of use later. Once that's finished run:

collateAverageImages

That will build grand average tiles used for illumination correction of stitched images.

How do I stitch sub-sets of the data?

Assuming the data have been pre-processed run:

>> cd /mnt/myLocalTVdata/mySample

%Stitch all data from channel 1:
stitchSection([],1) 

%Stitch physical section 34, optical section 3 from chan 1:
stitchSection([34,3],1)

%Same thing but stitch the first three channels
for ii=1:3
  stitchSection([34,3],ii)
end


%Stitch all from channel 2 and save original size and 25% size:
stitchSection([34,5], 1, 'stitchedSize', [100,25]) 

% Stitch all channels:
stitchAllChannels

How do I load individual tiles?

Once the generateTileIndex function has been run, you can load any raw data tile using the tileLoad function. This function can also be used to load all tiles from one optical section. See help tileLoad

Interrogate stitching accuracy?

You may notice that something is not right with your stitching accuracy if you see doubled features such as this:

An effective way of further exploring tile placement accuracy is to use "chessboard stitching". This is an option in the stitchSection command (chessboard) that produces chessboard-like RGB images. Here the ID of each tile is printed on the image and overlapping regions are shown in yellow.

If you are using BakingTray, you can tweak slightly the Voxel Size parameters in the recipe file until you get better results. If you continually need to do this, then the BakingTray settings file itself ought to be updated with these new stitching parameters.

Correct changing illumination with optical plane?

Use correctZilluminationInDirectory.

How do I interact with the INI file?

  • To see which INI file is being used: which('stitchitConf.ini')
  • Return the INI file as a MATLAB structure: myINI=readStitchItINI
  • Print all keys to screen (includes duplicate keys): stitchItINIkeys
  • Make a local INI file in the current directory: makeLocalStitchItConf
  • To edit the INI file from the command line you can do: StitchItSetConfigValue('doPhaseCorrection',1) and you can confirm it worked by doing: showStitchItConf and checking that the value is now 1