base image process and machine vision algorithms