Leg med Stereogrammer

Midlertidig kode indtil jeg er færdig med mine eksaminer… def load_image(image_path):return Image.open(image_path).convert(‘RGB’) def load_height_map(height_map_path, target_size):height_map = Image.open(height_map_path).convert(‘L’)height_map = height_map.resize(target_size)return height_map def create_stereogram(image, height_map, eye_distance=50, num_strips=20):image_np = np.array(image)height_map_np = np.array(height_map)height, width, _ = image_np.shapestrip_width = width // num_strips if name == “main“:image_path = “x”height_map_path = “y”

Leg med Stereogrammer Read More »