I'm trying to get an image to display in python using opencv, with a side pane on it. When I use np.hstack the main picture becomes unrecognizably white with only a small amount of color. Here's my code:
img = cv2.imread(filename)
img_with_gt, gt_pane = Evaluator.return_annotated(img, annotations)
both = np.hstack((img_with_gt, gt_pane))
cv2.imshow("moo", both)
cv2.waitKey(0)
cv2.destroyAllWindows()
And here is the resulting picture

But If I view img_with_gt it looks correct.

Even works with gt_pane

I can't seem to figure out why this is happening.
img_with_gt.dtypeandgt_pane.dtypein the REPL? Are they both the same class?gt_paneis float64,img_with_gtis uint8..I changed the construction with the optionaldtypein my call tonp.zeroesand it worked perfectly. Thanks!! If you answer it I can give you the check mark.