Image median computation and additional functionalities using image median for Canny edges detection threshold computation.