Adaptive image resizing based on continuous-domain stochastic modeling