From 10dcb8aa8b7fd766b4a90c6e923f3f5debffeb36 Mon Sep 17 00:00:00 2001 From: Ryoma Hattori Date: Wed, 28 Jun 2023 13:38:07 -0700 Subject: [PATCH] Added explanation Removed plots with potential intensity scaling issue --- PatchWarp/patchwarp_across_sessions_demo.m | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/PatchWarp/patchwarp_across_sessions_demo.m b/PatchWarp/patchwarp_across_sessions_demo.m index a07fadd..5c7801f 100644 --- a/PatchWarp/patchwarp_across_sessions_demo.m +++ b/PatchWarp/patchwarp_across_sessions_demo.m @@ -106,14 +106,12 @@ second_affine = 1; image_path = 'G:\Data\171026\RH825\corrected\post_warp_affine\downsampled\roi_mask.tif'; % image_path = 'G:\Data\171026\RH825\corrected\post_warp_affine\RH825camk2GC6sx18p70MatchingRSCr_001_002_corrected_warped.tif'; + input_images = double(read_tiff(image_path)); [images_warp1, images_warp2] = patchwarp_across_sessions_apply(input_images, patchwarp_results, second_affine); -figure -set(gcf,'Position',[50 50 1550 950]) -subplot(2,3,1) -imshow(imfuse(input_images(:, :, 1), images_warp1(:, :, 1),'falsecolor','Scaling','joint','ColorChannels','red-cyan')); -subplot(2,3,2) -imshow(imfuse(input_images(:, :, 1), images_warp2(:, :, 1),'falsecolor','Scaling','joint','ColorChannels','red-cyan')); +% An input image can be any images with the same size from session#2. e.g. Binary cellular ROI mask, 3D tiff stack, summary image. +% For example, if '...\late_session_max_projection_image.tif'is used as the input_image, it will return the same transformed image as in +% "patchwarp_results.image2_warp1/2" from the previous section. Note that the edge pixels have 0 values in these warped images.