reduce complexity by inputting half size image.