Text this: An approximate arithmetic progression approach for image filtering technique