http://code.opencv.org/issues/4293 μμ μ΄μ λ¨
|| Ying Xiong on 2015-04-24 15:45
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty:
|| PR:
|| Platform: None / None
I am wondering whether OpenCV has functions to handle the non-linearities in the sRGB color space.
Say I want to convert an JPEG image from sRGB color space into XYZ color space. As specified in this [Wiki page](https://en.wikipedia.org/wiki/SRGB#Specification_of_the_transformation), one needs to first undo the nonlinearities to convert to linear RGB space, and then multiply with the 3x3 color transform matrix. However, I couldn't find any such discussions in the [cvtColor](http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html#cvtcolor) documentation. Did I miss something?
Thanks a lot in advance!
- Category set to imgproc, video
μ, OpenCVλ κ°λ§ μμμμ λ§μ κ°μ μ΄ νμν©λλ€. http://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/
λ¬Έμμμ μ΄μ κ°μ΄ μΈκΈνλ κ²μ΄ μ’μ κ²μ λλ€. μλ₯Ό λ€μ΄, μ¬κΈ° μμ κ°λ§ 보μ μ λν΄ μΈκΈλ κ²μ΄ μμ΅λλ€. λ³νμ΄ μ ν λ³νμΌλ‘ μμλλ€λ μ¬μ€μ λ³νμ΄ μ΄λ€ μ’ λ₯μ κ°λ§ 보μ λ μννμ§ μλλ€λ κ°μ μ κ°νν©λλ€. μ¬μ μκ°μ΄ μκΈ°λ©΄ μ§μ κΈ°μ¬νκ³ λ¬Έμ λ₯Ό ν΄κ²°νλλ‘ λ Έλ ₯νκ² μ΅λλ€.
κ΄λ ¨ λ©λͺ¨μμ LRGB
λλ LBGR
μ κ°μ΄ COLOR_LBGR2Lab
LBGR
λ‘ μμνλ λ³ν μ½λμ μ¬μ©μ λͺ
νν ν μ μμ΅λκΉ? L
λ ν¨μκ° κ°λ§ μΈμ½λ©λ κ° λμ RGB/BGRμ λν΄ μ ν κ°μ μμνλ€λ κ²μ μλ―Έν©λκΉ?
미리 κ°μ¬λ립λλ€! β€οΈ
cv::imshow
λ° cv::imdecode
λμ λ°©μλ λͺ
ννμ§ μμ΅λλ€. μΌλΆ λ¬Έμλ λ§€μ° κ°μ¬νκ² μ΅λλ€.
κ°μ₯ μ μ©ν λκΈ
μ, OpenCVλ κ°λ§ μμμμ λ§μ κ°μ μ΄ νμν©λλ€. http://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/