AbdoKamel/simple-camera-pipeline

.mat image shape

Opened this issue · 1 comments

I use python h5py to read .mat files. But why the image shape is not the same as the correspoinding rgb image?

Also, I checked the python demo. Is there any python implementation of ISP that can convert these .mat files to rgb images?

The difference in image shape could be due to the sensor cropping area. This feature is not currently in the python version of the pipeline. Here is the equivalent in matlab:

cropArea = GetCropArea(metadata); % zero-based index, I guess!

The python pipeline works with DNGs for now. You can modify the code a little to read the image from the .mat file and the metadata from the corresponding metadata file, instead for reading both from a DNG file.

I will try to include those feature in the python pipeline in the future.