A system for enhancing a sampling rate of an imager detector for a selected region of interest, the system comprising: an imaging device; and a processing unit in communication with the imaging device; wherein the imaging device is configured to acquire a plurality of datasets of corresponding plurality of image frames by performing corresponding plurality of image frame handling cycles; wherein the processing unit is configured to define a special region of interest, SROI, in each of at least some of the plurality of the image frames, based on the datasets of the respective image frames; wherein the imaging device is further configured to acquire at least one partial dataset of the SROI, during each of at least some of the plurality of image frame handling cycles and within a residual time between an end of an image frame acquiring time and an end of the respective image frame handling cycle; and wherein the system is further configured to be disposed on a locomotive of a train such that the imaging device faces a direction of travel of the train, and wherein the processing unit further comprises a tracking module configured to: detect rails in each of at least some of the plurality of the image frames; define margins on both sides of the detected rails in each of at least some of the plurality of the image frames; define a safe braking line in each of at least some of the plurality of the image frames, based on a safe braking distance of the train; define a safe zone in each of at least some of the plurality of the image frames, based on the defined margins and the defined safe braking line; and define the SROI in each of at least some of the plurality of the image frames at a distal end of the defined safe zone. an imaging device; and a processing unit in communication with the imaging device; wherein the imaging device is configured to acquire a plurality of datasets of corresponding plurality of image frames by performing corresponding plurality of image frame handling cycles; wherein the processing unit is configured to define a special region of interest, SROI, in each of at least some of the plurality of the image frames, based on the datasets of the respective image frames; wherein the imaging device is further configured to acquire at least one partial dataset of the SROI, during each of at least some of the plurality of image frame handling cycles and within a residual time between an end of an image frame acquiring time and an end of the respective image frame handling cycle; and wherein the system is further configured to be disposed on a locomotive of a train such that the imaging device faces a direction of travel of the train, and wherein the processing unit further comprises a tracking module configured to: detect rails in each of at least some of the plurality of the image frames; define margins on both sides of the detected rails in each of at least some of the plurality of the image frames; define a safe braking line in each of at least some of the plurality of the image frames, based on a safe braking distance of the train; define a safe zone in each of at least some of the plurality of the image frames, based on the defined margins and the defined safe braking line; and define the SROI in each of at least some of the plurality of the image frames at a distal end of the defined safe zone.