Sander,
Please be sure that I am interested - I just don't currently have time to test your code as well as mine
But, I do envy your ability to do anything in the PCL environment, far less control your multi-threaded mutexes (whatever THEY might be - sounds more like a side-effect of swine fever to me
)
I am pressing ahead with my CMYG deBayer script - simply because the script layout itself might help encourage others to 'give it a go'. Hopefully I will have commented it enough to help with the lack of documentation.
I am also constantly thinking about a different approach to how deBayering is carried out - probably most programmers use some form of 'scan the pixels', establish the 'local pixel CFA colour', and then attack the 'nearest neighbour interpolation' problem.
Currently, I am playing around with a method that creates four full-size CFA grids to suit the RAW images in question (the option being provided for flips, flops and grid offsets just prior to their creation). These four 'images' then get PixelMath multiplied with the RAW image, creating four new images, each of which now contains the CFA response in ONE of the CFA colours.
Obviously, these four images still need to be 'interpolated' to 'fill-in the gaps' - and this is where I am currently experimenting with deconvolution kernels based on the fundamental FWHM quality of the RAW images that have been obtained (data that is easily obtained from DSS, AIP4WIN, etc - maybe even PIv1.5). The 'nearest neighbour' interpolation can be based on a variable grid size, from 3x3, 5x5, 7x7 etc - depending on whether the user wants 'speed' or 'quality'. And, again, I am hoping that my JSR can relay on PI 'core' calls to achieve most of the processor-intensive work.
Finally, the four CFA-extracted images can be processed to give an RGB image, and I have found that the transformation algorithm need not be in any way complicated at this stage - it just takes a few simple steps thereafter to get a nicely colour balanced image ready for further alignment and stacking.
Maybe some of my ideas might NOT have been tried by 'really clever' programmers like you Sander - if not feel free to use them - just try and remember who I am when those $$$-bills start to pour into your bank accounts
But, just don't get despondent, your efforts are being appreciated, but sometimes just in silence !
Cheers,