StitchIt
Search…
Tools for tweaking stitching parameters
Stichit uses manually chosen stitching parameters to place tiles. This relies upon good alignment between the scan axes and the motion axes. It also requires a precise value for the number of microns per pixel. All of these things should be defined by the microscope producing the data. The values are read by StitchIt at tile load time and stitch time. To assist in setting these values at the microscope, StitchIt provides the function chessboardStitch and the associated viewer exploreChessBoard. They work roughly like this:
1
% Stitch physical section 2, optical plane 1, channel 1:
2
>> IM=chessboardStitch([3,1],1); % IM is a structure
3
4
% Now visualise this:
5
>> exploreChessBoard(IM) % (mouse wheel zooms, right-drag to pan )
6
>> exploreChessBoard(IM,2000) %Again but with a new threshold
7
8
% Say we want to rotate the tiles by -0.4 degrees and compare
9
% that with the original stitching:
10
>> IM(2) = IM;
11
% affineMatGen is in BakingTray
12
>> IM(2).params.affineMat = affineMatGen('rot', -0.4);
13
>> IM(2) = chessboardStitch([3,1],1,IM(2)); %To use new parameters
14
15
16
% Compare the two stitching results side by
17
>> exploreChessBoard(IM,2000)
Copied!
The above can be used to generate comparisons like this:
Right is before and left is after tweaking.

Also see

Last modified 9mo ago
Copy link
Contents
Also see