1. An electronic device, comprising: a biometric sensor; and a processor configured to: receive, from the biometric sensor, an input image of a biometric; obtaining alignment information that aligns the input image to an enrollment image of the biometric; determine an overlap region and a non-overlap region of the input image relative to the enrollment image based on the alignment information that aligns the input image to the enrollment image; extract one or more anti-spoof features from the input image based on one or more of the overlap region and the non-overlap region; and determine whether the input image is a replica of the biometric based on the one or more anti-spoof features.