Excel VBA – RGB to HSV Color Conversion

VBA function to convert RGB values into OpenCV HSV values.

Note: These bits of code are mostly for my own reference, but if anyone else finds them useful all the better.

 

3 comments on “Excel VBA – RGB to HSV Color Conversion”

  1. Thanks! Note that the two additional functions could be avoided.

    Instead of GetRGBMinimum(r,g,b) use Application.WorksheetFunction.Min(r,g,b).
    Instead of GetRGBMaximum(r,g,b) use Application.WorksheetFunction.Max(r,g,b)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.