StitchIt
Search…
How to...?

How do I pre-process the data?

To pre-process all data from channels 1 to 3 run:
1
preProcessTiles([],'illumChans',1:3)
Copied!
This will calculate average tiles for each section as well as various stats that can be of use later. Once that's finished run:
1
collateAverageImages
Copied!
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:
1
>> cd /mnt/myLocalData/mySample
2
3
%Stitch all data from channel 1:
4
stitchSection([],1)
5
6
%Stitch physical section 34, optical section 3 from chan 1:
7
stitchSection([34,3],1)
8
9
%Same thing but stitch the first three channels
10
for ii=1:3
11
stitchSection([34,3],ii)
12
end
13
14
15
%Stitch all from channel 2 and save original size and 25% size:
16
stitchSection([34,5], 1, 'stitchedSize', [100,25])
17
18
% Stitch all channels:
19
stitchAllChannels
Copied!

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?

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
Last modified 9mo ago