File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def nodules(self, i):
109109 coords = (row .CoordX , row .CoordY , row .CoordZ )
110110 center_voxel = sitk_image .TransformPhysicalPointToIndex (map (int , coords ))[::- 1 ]
111111
112- nodule_block_origin = self .nodule_block_metadata (row .AnnotationID )['origin' ][::- 1 ]
112+ nodule_block_origin = self .get_nodule_block_metadata (row .AnnotationID )['origin' ][::- 1 ]
113113 bbox_start_point = sitk_image .TransformPhysicalPointToIndex (map (int , nodule_block_origin ))[::- 1 ]
114114 bbox = np .array ([bbox_start_point , np .minimum (bbox_start_point + bbox_size , shape )])
115115 nodules .append (
@@ -125,10 +125,10 @@ def nodules(self, i):
125125 )
126126 return nodules
127127
128- def nodule_block_image (self , annotation_id ):
128+ def get_nodule_block_image (self , annotation_id ):
129129 return np .load (self .root / f'luna25_nodule_blocks/image/{ annotation_id } .npy' )
130130
131- def nodule_block_metadata (self , annotation_id ):
131+ def get_nodule_block_metadata (self , annotation_id ):
132132 metadata = np .load (self .root / f'luna25_nodule_blocks/metadata/{ annotation_id } .npy' , allow_pickle = True )
133133 assert metadata .shape == ()
134134 return metadata .item ()
You can’t perform that action at this time.
0 commit comments