Skip to content
Snippets Groups Projects
Commit 70ad27c2 authored by Nattapon Jaroenchai's avatar Nattapon Jaroenchai
Browse files

Update test_h5image.py

parent c4562567
No related branches found
No related tags found
1 merge request!1updated main for release
......@@ -5,9 +5,9 @@ import cv2
h5_image = H5Image("/projects/bbym/shared/data/commonPatchData/256/OK_250K.hdf5", mode='r', patch_border=0)
map_name = h5_image.get_maps()[0]
map_array = h5_image.get_map(map_name)
map_array = = np.array(h5_image.get_map(map_name))
print("map_array.shape", map_array.shape, "type", type(map_array.data) )
print("map_array.shape", map_array.shape, "type", type(map_array) )
# Convert the map array to a grayscale image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment