Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/s/u/supper-resolution-HEAD/SRRestorer.py   supper-resolution(Download)
        dx, dy = offset
        HR_arr = numpy.asarray(LR_img.resize((high_res_size[1],high_res_size[0]), Image.ANTIALIAS))
        high_res_image += numpy.dstack((camera.doOffset(HR_arr[:,:,0],(-dx,-dy)),
                                        camera.doOffset(HR_arr[:,:,1],(-dx,-dy)),
                                        camera.doOffset(HR_arr[:,:,2],(-dx,-dy))))