AbdoKamel / simple-camera-pipeline

A simple and light-weight camera image processing pipeline
MIT License
310 stars 51 forks source link

if is there a error in demo.m #2

Closed GuideWsp closed 5 years ago

GuideWsp commented 5 years ago

normalizedRawFilename = '0001_GT_RAW_010.MAT'; metadataFilename = '0001_METADATA_RAW_010.MAT'; imNormRaw = load(fullfile('data', normalizedRawFilename)); imNormRaw = imNormRaw.x; metadata = load(fullfile('data', metadataFilename)); metadata = metadata.metadata; imSrgb2 = run_pipeline(imRaw, metadata, 'raw', 'srgb'); imwrite(imSrgb2, fullfile('data', [normalizedRawFilename, '_sRGB.png']));

Maybe the imRaw shoud be imNormRaw? but when i replace imRaw by imNormRaw, the result is not right. so will you tell me how to use imNormRaw and metadata produce imSrgb? thanks.

AbdoKamel commented 5 years ago

This line: imSrgb2 = run_pipeline(imRaw, metadata, 'raw', 'srgb'); Should be: imSrgb2 = run_pipeline(imNormRaw, metadata, 'normal', 'srgb');