Closed Bejsernia closed 4 months ago
def process_nucleus(nprop, im_nuclei_bool): for nprop in nuclei_props: row = { 'Label': nprop.label, 'Identifier.Xmin': nprop.bbox[1], 'Identifier.Ymin': nprop.bbox[0], 'Identifier.Xmax': nprop.bbox[3], 'Identifier.Ymax': nprop.bbox[2], 'Identifier.Centroid': nprop.centroid[1], 'Identifier.CentroidY': nprop.centroid[0], } if im_nuclei_bool: wcy, wcx = nprop.weighted_centroid row['Identifier.WeightedCentroidX'] = wcx row['Identifier.WeightedCentroidY'] = wcy data.append(row) return pd.DataFrame(data)
@Bejsernia Thank you for finding this
histomicstk vesion: 1.3.8
The function in _histomicstk.features.compute_nucleifeatures:
line186: 'Identifier.Centroid' should be 'Identifier.CentroidX'