Open sandman002 opened 5 days ago
Do you mean that you receive a raster with seven identical values for each pixel? Could you try to read the channels separately? Please check if the channels are not empty (all zeros) because sometimes channels of a qptiff can have different dimensions.
wsi_channel_0 = scene.read_block((x, y, width, height), channel_indices=[0])
wsi_channel_6 = scene.read_block((x, y, width, height), channel_indices=[6])
are_identical = np.array_equal(wsi_channel_0, wsi_channel_6)
print(are_identical)
min_value = np.min(wsi_channel_0)
max_value = np.max(wsi_channel_0)
average_value = np.mean(wsi_channel_0)
print(f"Minimum: {min_value}")
print(f"Maximum: {max_value}")
print(f"Average: {average_value}")
I’m reading a block from an 8-channel QPTIFF file, but the output shows the first channel repeated across all channels. What could be causing this issue?