Hi,
I've put together a new script for:
- Converting Mono CFA images produced by OSC/DSLR cameras to RGB Bayer images suitable for processing by DrizzleIntegration as part of a Bayer drizzle workflow.
- Copying and updating the accompanying Drizzle Data files (.drz) to point at the new RGB Bayer Images.
This process is covered extensively in other threads such as
http://pixinsight.com/forum/index.php?topic=7184.0 and
http://pixinsight.com/forum/index.php?topic=7151.0.
Until now the only automated way to undertake this task has been via the BatchPreprocessing script, which limits flexibility in achieving ideal calibration and integration settings. This script greatly simplifies the tedious image file conversion and renaming tasks and should make stand-alone Bayer drizzle much easier.
Note that there is also the CFAToRGB module available here:
http://pixinsight.com/forum/index.php?topic=8319.0, which can convert the image files manually or via an ImageContainer. Unfortunately the compiled versions are currently not working with the current release of PI and I don't have the ability to recompile from source. It isn't yet part of the standard PI release either so instead my script relies on PixelMath to perform the image file conversion tasks (shamelessly borrowed from BPP of course, along with bits from other scripts - full credits in the source and copyright files).
The theory and instructions for use are available in the included PIDOC documentation so I won't reproduce them here. Again parts shamelessly borrowed from Juan's various posts on drizzle.
Please test and report back any issues via this thread. Once I am happy I will create a pull request in the PI GitHub repository and hopefully it will then make it in to the next official release, assuming Juan is happy with my work.
ChangeLog1.0: First release.
Script Installation InstructionsNote that BayerDrizzlePrep is now part of the standard PixInsight release as of version 1.8.4.1193. If you would like to add the script to an older version, please follow the instructions below.
1. In the attached .zip file you'll find a folder called "BayerDrizzlePrep". Place the unzipped folder and its contents in your <PixInsight Folder>/src/scripts folder. (Note: Do not place the contents of the "BayerDrizzlePrep" folder directly in to /src/scripts but rather ensure that it is inside the scripts folder in a sub-folder called BayerDrizzlePrep).
2. In PixInsight select "Script" menu -> "Feature Scripts...".
3. Now click the "Add" button from the "Feature Scripts" dialog. Make sure the <PixInsight Folder>/src folder is selected and click "OK".
4. You should get a message saying that "1 additional script(s) were found on directory ...". Click "OK" and then "Done".
5. The BayerDrizzlePrep Script should now appear under the "Script" menu -> "Batch Processing" -> "BayerDrizzlePrep".
If you need more help, please see this video:
http://www.pixinsight.com.ar/en/docs/2/pixinsight-add-script.html.
Documentation Installation Instructions7. To install the documentation unzip the "pidoc" folder to a temporary location.
8. In PixInsight select "Script" menu -> "Development" -> "Documentation Compiler".
9. Click "Add Files" and browse to the pidoc folder that you just unzipped.
10. Choose the "BatchStatistics.pidoc" file and click "Open" to add it to the "PIDoc Source Files" list.
11. Click the "Run" button.
12. Click "No" when asked if you want to perform another compilation.
13. The console should display "PIDocCompiler: 1 succeeded, 0 failed, 30 warning(s)".
14. You can read the documentation by clicking the "Documentation" button at the bottom left of the "BayerDrizzlePrep" dialog, or by finding it in the "Process Explorer" under "<Scripts>" -> "Batch Processing" -> "BayerDrizzlePrep".