Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CR2 Raw Sensor Replace #1

Open
segallis opened this issue Oct 30, 2020 · 0 comments
Open

CR2 Raw Sensor Replace #1

segallis opened this issue Oct 30, 2020 · 0 comments

Comments

@segallis
Copy link

I'm new to GIT so apologies if this is the wrong way to communicate... I am working on several python scripts for astro-photography - dark frame optimization (really sensor mapping and noise reduction); dark frame subtraction; alignment & distortion correction; and image stacking. I realize there are lots of solution already, but I am try to implement some innovative signal processing techniques. My next step is to do as much as processing as possible at the raw sensor data level.

I have leveraged several other script to the point of getting raw Bayer sensor data into a 2D numpy array (I should mention that I am not yet a Python "expert"). From there, I am comfortable doing the image/signal processing I need to so. My end result is a modified 2D array with the "new" sensor Bayer data. Here is where I hit a wall.

I need to over-wite the modified sensor data into the CR2 file.

Ideally I would love few simple routines like:
raw_info = readcr2file('filename')
bayer_data = raw_info.get2darray
and
raw_info = overwrite(bayer_data)
writecr2file(raw_info)

I believe your code has everything I need, but I'm not quite sure which pieces I need and exactly how to go about making things happen. I really don't care about the embedded thumbnails, or anything other than simply overwriting the raw bayer sensor values.

Any direction would be appreciated.

-Greg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant