1. A method for depth selective segmentation of an object, comprising: capturing an image in an invisible domain of the optical spectrum by illuminating a scene of interest under an illumination provided in said invisible domain of the optical spectrum by an invisible light illumination unit; obtaining a binary mask from the captured image according to a threshold; eliminating part of the captured image by applying the binary mask to the captured image, and resulting in a new image; changing the threshold and obtaining another binary mask; and applying the latest obtained binary mask to the latest captured image; wherein the steps of changing of the threshold, the step of obtaining a mask and the step of applying the latest obtained binary mask to the latest captured image are performed at least one time.