1. A system for adjusting one or more pixel values in a data map, the system comprising: a processor; and a computer readable medium coupled to the processor, the computer readable medium comprising instructions that cause the processor to implement a method comprising: obtain the data map of an image frame, wherein the data map comprises good pixels at a first set of locations associated with the data map and bad pixels at a second set of locations associated with the data map; for a current pixel in the data map, conduct a pixel analysis comprising: identify that the current pixel is a bad pixel, identify that all pixels directly next to the current pixel are bad pixels, measure a first distance to a left good pixel, measure a second distance to a right good pixel, measure a third distance to a upper good pixel, measure a fourth distance to a lower good pixel, and compare the first distance, second distance, third distance, and fourth distance, when the first distance to the left good pixel is the shortest distance, identify a left good pixel replacement technique for the current pixel; and assign the left good pixel replacement technique for the current pixel in an adaptive pixel replacement mask.