Is there a way to sample an image in a similar way as a Bayer sensor for the Image Simulation tool? Without making a custom Bayer slide surface for each image and imaging system?
For example: sampling an input image BMP as RGGB assuming bands 3+2+2+1, then providing the option of a raw or de-mosaiced color simulated image.
Best answer by Leduse
Hi Sandrine,
Thanks for the info! That sounds like a good approach.
I’ll read a bit more into ZPL. I think your macro uses most of the functions and syntax I would need to learn to make the Bayer code.
It will probably end up being very similar to this Matlab code I just wrote:
Thank you for sharing this idea. Ideally it would be nice to do this in the API but unfortunately the Image Simulation is not currently fully implemented in ZOS-API.
However I think ZPL could work. I did a macro that makes a cross section of the result of the image simulation here:
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.