1. A method for detecting a misalignment of an object in a processing system, comprising: obtaining a first image of the object; determining first values associated with pixels in at least one region of the first image; calculating at least one of: a center of gravity value of the pixels in the at least one region or an average weight of the pixels in the at least one region; and detecting a misalignment of the object based on at least one of: the calculated center of gravity or average weight of the pixels in the at least one region.