I found the from_images() function in the cvbpy documentation and tried a simple implementation of it, but i can’t get it to work. It just returns the first image from the list.
Additionally I’m wondering if its possible to create an cvb.Image object from a numpy array?
Im working with:
- platform: Windows 10
- python version: 3.8.8
- CVB version: 13.03.002
file_name = "Clara.png" file_name_out = "Clara_dual.png" path = os.path.join(PATH_MEDIA, "container", file_name) path_out = os.path.join(PATH_MEDIA, "container", file_name_out) src_image = cvb.Image(path) double_image = src_image.from_images(0, [src_image, src_image]) double_image.save(path_out) # this will just be the first image