How to convert color values based on RGB into HSV?

Updated Dec 3, 2018

Reported In

Software

  • LabVIEW 2015
  • LabVIEW 2016
  • LabVIEW 2017
  • LabVIEW 2018
  • Vision Development Module

Issue Details

I want to convert to RGB to HSV. How can I do it with LabVIEW?

Solution

You can do it if you install the NI Vision Development Module.
NI Vision Development Module (VDM) is designed to help you develop machine vision applications and support lots of Vision Utilities including color conversion.
After installing VDM, you can find IMAQ RGBToColor 2 VI in Function pallet.
The path is Vision and Motion»Vision Utilities»Color Utilities»IMAQ RGBToColor 2 VI.
 

IMAQ RGBToColor 2 VI converts an RGB color value into another format. Therefore, you can control many types of color format like RGB, HSL, HSV and so on.