Tumor Location in Image

I have a dataset of registered images, each with a segmentation, and I want to identify the location of the segmentation in the MRI intensity matrix: X, Y, Z. how it is possible ?