object number.
if self.has_ijv or children.has_ijv:
return self.relate_ijv(self.ijv, children.ijv)
parent_labels = self.segmented
child_labels = children.segmented
// Apply cropping to the parent if done to the child
After Change
parent_count = histogram.shape[0] - 1
child_count = histogram.shape[1] - 1
parents_of_children = np.argmax(histogram, axis=0)
//
// Create a histogram of // of children per parent
children_per_parent = np.histogram(parents_of_children[1:], np.arange(parent_count + 2))[0][1:]
//
// Make sure to remove the background elements at index 0