Skip to content

Commit

Permalink
fix: remove color conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Dodds committed Oct 6, 2021
1 parent bf41cb2 commit 532bf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PostProcessSegmentationMask.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def align_seg_on_image2(input_image, input_mask, output_image, thresh=100, noise
orig_image = cv2.cvtColor(cv2.imread(input_image), cv2.COLOR_BGR2RGB)

overlaid_mask = overlay(orig_image, seg_image, thresh, noise_objects_size)
cv2.imwrite(output_image, cv2.cvtColor(overlaid_mask, cv2.COLOR_BGR2RGB))
cv2.imwrite(output_image, overlaid_mask)

refined_mask = refine(orig_image, seg_image, thresh, noise_objects_size)
cv2.imwrite(output_image.replace('Overlaid', 'Refined'), refined_mask)
Expand Down

0 comments on commit 532bf86

Please sign in to comment.