Skip to content

Commit

Permalink
fix bug in layer restitch; fix bug is post-blend save
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Feb 4, 2024
1 parent 502a13c commit a0c4b55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blend.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,6 @@ def blend(self):
#cv2.waitKey()

self.overview_fullres = canvas
self.overview = cv2.resize(canvas, None, None, fx=THUMB_SCALE, fy=THUMB_SCALE)
self.overview = cv2.cvtColor(cv2.resize(canvas, None, None, fx=THUMB_SCALE, fy=THUMB_SCALE), cv2.COLOR_GRAY2RGB)
self.overview_dirty = False
self.rescale_overview()
6 changes: 5 additions & 1 deletion stitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ def restitch_selection(self):
self.status_autostitch_button.setEnabled(False)
self.status_restitch_selection_button.setEnabled(False)
if restitch_list is None or len(restitch_list) == 1: # stitch just the selected tile
(layer, tile) = self.schema.get_tile_by_coordinate(self.selected_image_centroid)
if self.layer_selected is not None:
layer = self.layer_selected
(_md, tile) = self.schema.get_info_from_layer(layer)
else:
(layer, tile) = self.schema.get_tile_by_coordinate(self.selected_image_centroid)
logging.info(f"Restitch single tile {layer} / {tile}")
self.schema.flag_touchup(layer)
self.restitch_one(layer, mse_cleanup=self.status_mse_cleanup.isChecked())
Expand Down

0 comments on commit a0c4b55

Please sign in to comment.