- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am Chae.
I am reading the sample_camera code of Intel Media SDK sample.
I want to operate vignette correction of Raw Accelerator.
but when I use vignette correction of sample_camera.cpp, VignetteMaskFile is required for using the correction.
So, I want to know what is Foramt of VignetteMaskFile and receive the sample MaskFile.
thank u.
FILE *maskFile; /* Load vignette mask from file */ MSDK_FOPEN(maskFile, pParams->strVignetteMaskFile, MSDK_STRING("rb"));
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chae,
I checked the samples and document and I didn't find anywhere it specify this file and I will ask.
In the meantime, you can check the following code to reverse engineer the file format, it should be simple and I think it should use the common Vignette Mask file by the popular photo tools.
At the line 1078 the function CCameraPipeline::AllocAndInitVignetteCorrection() is the Vignette Mask file parsing logic.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Liu.
Thank u for your answer.
I have to create mask file myself?
and then, I must create a mask file by using popular photo tools? (ex. photoshop etc..)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chae,
I think you have to create your own, but I can ask.
Here is the file format I got:
For sample_camera input is bayer format (rg16, bg16, ..), output is .bmp (by default)
Let me know if you have questions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Liu.
Vignette correction mask must have 4channel(R, Gr, Gb, B) and 2Bytes(integer, mantissa) each channel..
So mask file is RAW format?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page