Search found 9 matches

by Ocirne94
2017-03-15T06:41:31-07:00
Forum: Users
Topic: How to do a sub-pixel (float) crop
Replies: 13
Views: 16933

Re: How to do a sub-pixel (float) crop

Ok, I've got it working (the whole thing is a multithread keyframe-based animation system). In the end I had to directly call convert as a sub-process, as no python binding apparently provides the viewport feature. Yes, the documentation is a bit confusing at first for someone who doesn't know the ...
by Ocirne94
2017-03-14T16:51:45-07:00
Forum: Users
Topic: How to do a sub-pixel (float) crop
Replies: 13
Views: 16933

Re: How to do a sub-pixel (float) crop

Ok, I think I've understood the srt part. This would explain why the output of these two commands is the same, also in terms of visual detail: convert 1.tif -define distort:viewport=900x600+0+0 -distort SRT "0.5,0 0.5 0 0,0" 1_single.tif convert 1.tif -distort SRT "0.5,0 1 0 0,0" -define distort ...
by Ocirne94
2017-03-14T15:57:22-07:00
Forum: Users
Topic: How to do a sub-pixel (float) crop
Replies: 13
Views: 16933

Re: How to do a sub-pixel (float) crop

Ok but IIRC the SRT first applies scale, then translate: shouldn't there be more detail left if I downscale at the end?
by Ocirne94
2017-03-14T13:37:46-07:00
Forum: Users
Topic: How to do a sub-pixel (float) crop
Replies: 13
Views: 16933

Re: How to do a sub-pixel (float) crop

I'm not trying to save fractionary pixel dimensions, I extract a fractionary region (fractionary - in terms of position and dimensions - on the original image, but it's rigidly scaled to integer dimensions prior to cropping/viewporting) and then save it.
by Ocirne94
2017-03-14T12:44:57-07:00
Forum: Users
Topic: How to do a sub-pixel (float) crop
Replies: 13
Views: 16933

Re: How to do a sub-pixel (float) crop

Thank you very much for your answers. So, given my crop regions have both noninteger dimensions and location, IIUC I have to 1- translate with SRT by a float amount so the region to be cropped has its top-left pixel at (0,0) 2- resize (with SRT) so that the region to be cropped has integer ...
by Ocirne94
2017-03-14T09:50:15-07:00
Forum: Users
Topic: How to do a sub-pixel (float) crop
Replies: 13
Views: 16933

How to do a sub-pixel (float) crop

Hi all, I'm trying to implement some basic panning/zooming animation where several (overlapping) regions are cropped from an image at slowly moving locations. These locations often happen to be specified by floating point pixel indices, which the normal -crop operator converts to integer: the result ...
by Ocirne94
2016-06-30T05:56:16-07:00
Forum: Bugs
Topic: Bits lost along the way with convert -combine
Replies: 5
Views: 6041

Re: Bits lost along the way with convert -combine

Gimp 2.9.3, which supports up to 32-bits per channel and floating point.
by Ocirne94
2016-06-30T05:39:58-07:00
Forum: Bugs
Topic: Bits lost along the way with convert -combine
Replies: 5
Views: 6041

Re: Bits lost along the way with convert -combine

Now this is weird: opening the image (2.tif) with gimp I get the full 16-bits (there are more than 256 values and the histogram has a beautifully continuous and solid shape). So it really looks like IM is missing something... :( P.S.: the channels are not identical, landsat images need a strong ...
by Ocirne94
2016-06-29T15:39:17-07:00
Forum: Bugs
Topic: Bits lost along the way with convert -combine
Replies: 5
Views: 6041

Bits lost along the way with convert -combine

Hi all, I'm trying to use convert to combine the three r, g and b bands of a landsat scene into an rgb image. The bands are 16-bits grayscale, the command I use is convert -combine {4,3,2}.tif -depth 16 rgb.tif The result is indeed 16-bits-per-channel, but apparently during the process there is some ...