We present the concept of adaptive polarization optics and validate it using a system that contains full polarization control and measurement at pixel level. Polarization control is implemented based on double pass spatial light modulator (SLM) system while the measurement is realized via an imaging Stokes polarimeter. Our design is able to extract the variation in polarization state across a beam and from this extracted information about a birefringent sample that introduces a polarization disturbance into the system. This information is used to control the SLM-based polarization state generator in order to restore the light to the desired state after passing through the sample. The method is demonstrated using a vortex half-wave retarder as the birefringent sample.