Closed Bonsen closed 7 years ago
I am not sure I understand, did you figure it out?
For the DSB competition I created a script to draw the actual annotations of the radiologists as the ground truth, that should be a lot cleaner than above code (and confirmed error free).
in src/data_processing/create_same_spacing_data_NODULE.py:
.............. .............. ` lung_slice_512[upper_offset:-lower_offset,upper_offset:-lower_offset] = lung_slice lung_mask_slice_512[upper_offset:-lower_offset,upper_offset:-lower_offset] = lung_mask_slice nodule_mask_slice_512[upper_offset:-lower_offset,upper_offset:-lower_offset] = nodule_mask_slice
Image.fromarray(nodule_mask_slice_512*255).convert('L').save("/home/zhangboheng/luna16/luna16/src/data_processing/"+str(counr)+".png")
Image.fromarray(lung_mask_slice_512*255).convert('L').save("/home/zhangboheng/luna16/luna16/src/data_processing/"+str(counr)+"_2.png")
Image.fromarray(lung_slice_512*255).convert('L').save("/home/zhangboheng/luna16/luna16/src/data_processing/"+str(counr)+"_3.png") break ` The pixel 1 in nodule_mask_slice_512 locates(same x,y) in lung_mask_slice_512 and lung_slice_512 which pixel is 0.?????(it should locate in 1)
..............