opencv - How to read the data of a raw image in python - approach -
i interested in reading rgb data of raw image using python. analyze rgb of raw image no filtering , processing done dslr. how recommend proceeding? library etc.? storing numpy array, if possible advantageous, believe. using opencv initial idea, recommend else? said, want analyze image raw possible, hence pre-color filter if possible. thank you.
if have raw image ("my_picture.raw")? totally use opencv-python @ it.
raw_data = imread('my_picture.raw') this should give numpy array of pixels raw file contains.
then, can basic operations on data (accessing pixels, doing object/feature recognition, etc.). there's ton of detail on website: https://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_core/py_basic_ops/py_basic_ops.html#basic-ops
if don't have raw image, i'm not sure how "undo" processing of dslr, or if can!
you don't have use opencv, necessarily. if have access matlab license, should check out (easier use imo). matlab has powerful set of image processing tools.
Comments
Post a Comment