Haze, fog, rain usually hampered the performance of vision systems. So, removal of haze appearance in a scene should be the first priority for clear vision. Previously a dehazing mechanism was developed based on dark channel prior which cannot automatically set the patch size and the sky-region's transmission value. The current paper tries to fill this gap to automate these values. Experimentation has been conducted to find the performance on the basis of subjective as well as objective metrics. We have obtained satisfactory results compared to the existing techniques.