Support for Pentax pixel shift files #3489


(Gimbal Lock) #201

I finally tried this myself on a closeup of a wristwatch with a moving second hand. The “shadow” from the motion correction where a little disturbing since the second hand had such clear boundaries against a smooth background. Also the exposure where pushed quite a bit which exaggerated the noise somewhat and made the motion correction more visible.

But the smooth transition function fixed that beautifully. Very nice, the sharp transition between the smooth PS background and the single picture very just gone. Well done!


(Ingo Weyrich) #202

Thanks a lot for the test and the feedback.
Next days I will push a new version with some speedups and better motion detection for high iso images (optionally)


(nosle) #203

If no one beats me to it I should be able to do some high iso motion correction K3II samples this weekend as per your request above.


(Ingo Weyrich) #204

That would be really great :slight_smile:


(Ingo Weyrich) #205

I pushed some changes to pixelshift branch.

  • A speedup for the Blur mode
  • An experimental ISO adaption to increase motion detection for higher ISO. It’s currently mapped to the Experimental checkbox. In my tests it works fine with K-1 files up to ISO 6400. I don’t have examples at ISO 12800 or ISO 25600 from K-1 but for files with ISO >= 51200 it has overdetection of motion. For other models it can be different. At ISO 100 the behaviour is exactly the same as with Experimental disabled.

(nosle) #206

K3II high iso pixelshift files can be downloaded at https://filebin.net/f8d7lxs52e7de8bk/k3ii-hiisopxl.7z

Tried to take som better shots but various things colluded so that these “studio shots” :wink: are the best I have. There’s motion but not quite as complex as my other examples.

I can provide more challenging tests at some other time.


(Ingo Weyrich) #207

@nosle Thank you very much for making this shots! They are really great and also show that the new experimental iso adaption is better than the old one even for K3II high iso files. Though there’s still room for improvements.

One example, left is with experimental checkbox disabled, right with enabled:


(Vitalis) #208

Hi,
I made 2 kits of all possible ISOs. 150 is street scene taken with SMC Takumar 150/4. F values are 7.1 for [100,25600] and 11 for [25600,102400]. 31 – water and ducks with FA30: 7.1 at [100,12800] and 11 at [12800,102400]. Get them at https://filebin.net/8rfehkjqgykh8jwp
VT


(nosle) #209

Comparison DCU5 vs Rawtherapee Pixelshift. Both succeeed I guess. DCU appears to do some noise reduction despite disabling it, or it’s the demosaicing. iso 3200

edited for heresy


(Ingo Weyrich) #210

Darktable? :wink:

Edit: Can you please show also a screenshot of DCU5 from this file with non pixelshift processing?


#211

@heckflosse If you still need them, I can upload files from the K-1 tomorrow (will have to ask our secretary which have a cable connection). There are wind turbine in front of cloudy sky + some detailed tree (those are perfectly still). FF, 400-800-1600-12800-25600 ISO.


(nosle) #212

Looks pretty similar. If you flip between the originals, see link below, you can make out the difference and quite clearly see which areas are motion corrected. They look a bit tighter than the Rawtherapee experimental? what do you think?

You can download full res DCU shfton, shftoff tiffs at
https://filebin.net/izd9696ipiv4rkor
I’m currently also uploading iso 12800 ones

*edited as the difference is clear in other parts of the image


(Ingo Weyrich) #213

@nosle Thanks for the files. They are really interesting :slight_smile:

Here’s a screenshot where you can see the enhanced absolute difference between the motion corrected pixelshift dcu and the demosaiced dcu ISO 3200 file. Black means no difference.

When zooming in it gets really interesting. They seem to use two different methods. A tiled and an untiled processing:

The tiled processing leads to clearly visible transitions:

As you already mentioned, dcu seems to use some noise reduction too.


(Ingo Weyrich) #214

Hi Vitals,

thanks a lot for the files. They are very welcome :slight_smile:


(Ingo Weyrich) #215

Hi Hombre,

as @vto already uploaded a lot of files from K1 I don’t want to stress your upload capacity :wink:


(nosle) #216

Just a thought could the tiled edge come from the texture of the fabric rather than demosaic? It’s quite three-dimensional and the moving shadows could potentially have jagged edges considering the angle of light. Haven’t looked to closely at it as I’m on my phone atm. But it would explain why the smooth surface had sharp edge


(Ingo Weyrich) #217

@nosle I don’t think so. Have a look at the crosses in second screen shot.
I inspected it a bit more. It’s clearly a 16x16 tiling


(Ingo Weyrich) #218

I pushed a new option to pixelshift gtk2 branch which allows to use lmmse demosaic instead of amaze demosaic for motion parts. That’s especially useful for high iso shots…


(Ilias Giarimis) #219

@Marek @Hombre @nosle any any other owner …

Request for “White Frames” http://rawpedia.rawtherapee.com/Adding_Support_for_New_Raw_Formats
for K-1, K-70, and K3II to properly fill up camconst.json and sensor data for pixelshift.
Only categories 1,2 … no need for apperture scaling samples (3). If 1 & 2 is too much, just supply 2 (Long exposures with Long Exposure Noise Reduction ON)
At all ISOs (100-125-160-200-250 … xxxx) preferably in DNG format but 1-2 high ISO samples in both DNG and PEF will help clarify some things.
Preferably in pixelshift mode but if it’s too much single frames will also do the job (just a small uncertainty will remain)


(Vitalis) #220

Hi,
I made these files for K1; hope they will be good.
https://filebin.net/ybpfc74w7xasjkk9
VT