View Full Version : debayering image sequence question
BabaG
10th February 2012, 01:20
i have a new camera that captures raw frames to an image sequence. what would be the process to get from a folder full of raw stills to a playable, debayered avi using avisynth? is this something i can use avisynth for?
thanks,
BabaG
pandy
10th February 2012, 13:42
http://forum.doom9.org/search.php
http://forum.doom9.org/showthread.php?t=146088&highlight=debayer
BabaG
11th February 2012, 23:31
thanks pandy. that's helpful. i have additional info on this.
the files i'm trying to work with are captured using an open source app called micro manager which is a sort of front end for another open source app, imagej. imagej does the saving. i'm told by my camera manufacturer that i can save frames from the camera in either .raw format or .fits format. these are the only two that imagej supports that will preserve all of my sensor data, something i want to do as long as possible.
if i save to .raw, these are the settings i have to apply in order to re-import the frame into imagej:
bit depth = 16 bit unsigned raw
frame size = 3296 x 2472
offset to first image = 0 bytes
number of images = 1
gap between images = 0 bytes
all below options are unchecked
-------------------------------------
white is zero
little-endian byte order
open all files in folder
use virtual stack
hopefully this tells us something useful about the raw files.
i presume that i would first use ImageSource() to import the frames as an image sequence and then apply the demosaic filter. what sort of settings and syntax do i use to get the above described frames into avisynth? if i can't get these frames directly into avisynth, what would be the best workaround?
thanks again,
BabaG
pandy
13th February 2012, 15:11
first bit depth = 16 bit unsigned raw probably means that some solution to open image with more than 8 bit depth per component must be used - so focus on this http://avisynth.org/mediawiki/High_bit-depth_Support_with_Avisynth and corresponding topics or sadly i must admit other external solution to debayer with more than 8 bit depth support per component must be used.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.