SWC-Advanced-Microscopy / StitchIt

Stitching of large tiled datasets
GNU Lesser General Public License v3.0
17 stars 7 forks source link

stitched images have bottom and left edges cropped peeksection is ok #192

Open raacampbell opened 3 years ago

raacampbell commented 3 years ago

This happened since changing the dominant Y tiling direction.

Ok, it's getting cropped at around line 250 of stitcher:

if allowPartialTiles && ~isempty(maxPixelPos)
    stitchedPlane = stitchedPlane(1:maxPixelPos(1), 1:maxPixelPos(2),:);
end

This happens because maxPixelPos is wrong. In turn this seems to arise from:

imagedExtent = determineStitchedImageExtent;
maxXY = max(stagePos2PixelPos([imagedExtent.minXY;imagedExtent.maxXY],voxelSize));

Problem commit from BakingTray : version: branch=dev commit=4aaa71914125af491d1396b9749c88ac91acad0e

raacampbell commented 3 years ago

I could have sworn this is fixed.