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 captured image; wherein the step of changing the threshold, the step of obtaining a mask and the step of applying the latest obtained binary mask to the captured image are repeatedly performed based on the same captured image until all required parts of the captured image are eliminated.