A method for segmenting an object in a medical image, the method comprising: a) providing the medical image, b) performing a plurality of iteration steps, - wherein the input of the first iteration step of the plurality of iteration steps comprises the medical image as an input image, - wherein the input of each further iteration step of the plurality of iteration steps comprises a vote map generated in the preceding iteration step as the input image, - wherein each iteration step of the plurality of iteration steps comprises: i) generating a plurality of patches, wherein a portion of the input image and a patch location are assigned to each patch of the plurality of patches, the patch location being indicative of the location of the portion of the input image relative to the input image, ii) for each patch of the plurality of patches - determining a vote location based on the portion of the input image assigned to that patch and - determining a target location based on the vote location and the patch location assigned to that patch, iii) generating a vote map, wherein each patch of the plurality of patches contributes to a pixel value at the target location of that patch in the vote map, c) determining a structure in the vote map of the final iteration step of the plurality of iteration steps, d) determining a subset of patches of the plurality of patches of the first iteration step that contributed to the structure in the vote map of the final iteration step, e) segmenting the object based on the subset of patches to obtain a segmentation outcome. a) providing the medical image, b) performing a plurality of iteration steps, - wherein the input of the first iteration step of the plurality of iteration steps comprises the medical image as an input image, - wherein the input of each further iteration step of the plurality of iteration steps comprises a vote map generated in the preceding iteration step as the input image, - wherein each iteration step of the plurality of iteration steps comprises: i) generating a plurality of patches, wherein a portion of the input image and a patch location are assigned to each patch of the plurality of patches, the patch location being indicative of the location of the portion of the input image relative to the input image, ii) for each patch of the plurality of patches - determining a vote location based on the portion of the input image assigned to that patch and - determining a target location based on the vote location and the patch location assigned to that patch, iii) generating a vote map, wherein each patch of the plurality of patches contributes to a pixel value at the target location of that patch in the vote map, - wherein the input of the first iteration step of the plurality of iteration steps comprises the medical image as an input image, - wherein the input of each further iteration step of the plurality of iteration steps comprises a vote map generated in the preceding iteration step as the input image, - wherein each iteration step of the plurality of iteration steps comprises: i) generating a plurality of patches, wherein a portion of the input image and a patch location are assigned to each patch of the plurality of patches, the patch location being indicative of the location of the portion of the input image relative to the input image, ii) for each patch of the plurality of patches - determining a vote location based on the portion of the input image assigned to that patch and - determining a target location based on the vote location and the patch location assigned to that patch, iii) generating a vote map, wherein each patch of the plurality of patches contributes to a pixel value at the target location of that patch in the vote map, i) generating a plurality of patches, wherein a portion of the input image and a patch location are assigned to each patch of the plurality of patches, the patch location being indicative of the location of the portion of the input image relative to the input image, ii) for each patch of the plurality of patches - determining a vote location based on the portion of the input image assigned to that patch and - determining a target location based on the vote location and the patch location assigned to that patch, - determining a vote location based on the portion of the input image assigned to that patch and - determining a target location based on the vote location and the patch location assigned to that patch, iii) generating a vote map, wherein each patch of the plurality of patches contributes to a pixel value at the target location of that patch in the vote map, c) determining a structure in the vote map of the final iteration step of the plurality of iteration steps, d) determining a subset of patches of the plurality of patches of the first iteration step that contributed to the structure in the vote map of the final iteration step, e) segmenting the object based on the subset of patches to obtain a segmentation outcome.