diff options
author | jaseg <git@jaseg.net> | 2017-11-26 14:38:08 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2017-11-26 14:38:08 +0100 |
commit | f4588ebda583bfa45e3ceb3dc5680b07fe9402d5 (patch) | |
tree | 9498ba505c6bb400d8c8c76efbe5523798af1fb8 /gerbimg.py | |
parent | e864cde5968ea9c35bf521358a74b20385ac8567 (diff) | |
download | gerbolyze-f4588ebda583bfa45e3ceb3dc5680b07fe9402d5.tar.gz gerbolyze-f4588ebda583bfa45e3ceb3dc5680b07fe9402d5.tar.bz2 gerbolyze-f4588ebda583bfa45e3ceb3dc5680b07fe9402d5.zip |
Add offset status info
Diffstat (limited to 'gerbimg.py')
-rwxr-xr-x | gerbimg.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,10 +85,10 @@ def paste_image( offx += int(grbw*scale - imgw) // 2 offy += int(grbh*scale - imgh) // 2 endx, endy = min(offx+imgw, tgtw), min(offy+imgh, tgth) + print('off', (offx, offy), 'end', (endx, endy), 'img', (imgw, imgh), 'tgt', (tgtw, tgth)) padded_img[offy:endy, offx:endx] = source_img[:endy-offy, :endx-offx] debugimg(padded_img, 'padded') debugimg(target_img, 'target') - print('off', (offx, offy), 'end', (endx, endy), 'img', (imgw, imgh), 'tgt', (tgtw, tgth)) status_print('Masking source image') out_img = (np.multiply((padded_img/255.0), (target_img/255.0) * -1 + 1) * 255).astype(np.uint8) |