Open eszdman opened 1 year ago
You can contribute or you can sponsor prioritizing implement GainMap write feature
You can use a simpler opcode called "FixVignetteRadial" to correct the camera shading. Have a look at my project DngOpcodesEditor to try out that opcode.
Interesting! > DngOpcodesEditor.
BTW, I think usually many cameras(includes Android's DNG support) only provide GainMap opcode.
Hello @syoyo, Not all opcodes are extensively used. I have seen many smartphones using FixVignetteRadial, some drones use WarpRectilinear and GainMap. I'm now trying to implement GainMap because is pretty popular, keep watching the project.
Thanks! Good to know! > I have seen many smartphones using FixVignetteRadial, some drones use WarpRectilinear and GainMap
You can already find a working implementation of the opcode in the repository. Some border cases are not handled yet, but seems working.
Hello @syoyo, Not all opcodes are extensively used. I have seen many smartphones using FixVignetteRadial, some drones use WarpRectilinear and GainMap. I'm now trying to implement GainMap because is pretty popular, keep watching the project.
It would be nice if you wrote an algorithm that can convert gainmaps back and forth with this opcode
@syoyo Do you have an use case for this scenario? The conversion FixVignetteRadial->GainMap is feasible, but you can have only have an approximation from GainMap to FixVignetteRadial. For example DJI uses the GainMap to fix vignetting, correct aberration and balance a bit colors at the same time.
Please, provide ability to write GainMap into dng file. This is a necessary thing when creating a dng file with camera lens shading.