Skip to content

Commit

Permalink
Fixe some alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Courroux committed Feb 9, 2024
1 parent c8c24dc commit 942a543
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Alignment v2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
"if not panchroCam:\n",
" cropped_dimensions, edges = imageutils.find_crop_bounds(thecapture, warp_matrices, warp_mode=warp_mode, reference_band=match_index)\n",
" print(\"Cropped dimensions:\",cropped_dimensions)\n",
" im_aligned = thecapture.create_aligned_capture(warp_matrices=warp_matrices, motion_type=warp_mode, img_type=img_type, match_index=match_index)\n"
" im_aligned = thecapture.create_aligned_capture(warp_matrices=warp_matrices, motion_type=warp_mode, img_type=img_type)\n"
]
},
{
Expand Down Expand Up @@ -579,10 +579,10 @@
"if panchroCam:\n",
" # in this example, we can export both a pan-sharpened stack and an upsampled stack\n",
" # so you can compare them in GIS. In practice, you would typically only output the pansharpened stack \n",
" thecapture.save_capture_as_stack(outputName+\"-pansharpened.tif\", sort_by_wavelength=True,pansharpen=True,img_type=img_type)\n",
" thecapture.save_capture_as_stack(outputName+\"-upsampled.tif\", sort_by_wavelength=True,pansharpen=False,img_type=img_type)\n",
" thecapture.save_capture_as_stack(outputName+\"-pansharpened.tif\", sort_by_wavelength=True, pansharpen=True)\n",
" thecapture.save_capture_as_stack(outputName+\"-upsampled.tif\", sort_by_wavelength=True, pansharpen=False)\n",
"else:\n",
" thecapture.save_capture_as_stack(outputName+\"-noPanels.tif\", sort_by_wavelength=True,img_type=img_type)\n",
" thecapture.save_capture_as_stack(outputName+\"-noPanels.tif\", sort_by_wavelength=True)\n",
"\n",
"et = time.time()\n",
"elapsed_time = et - st\n",
Expand Down

0 comments on commit 942a543

Please sign in to comment.