EMGU Extract hue channel from HSV image


/ Published in: C#
Save to your folder(s)

Given an image in HSV format, this code extracts the hue channel as a UMat


Copy this code and paste it in your HTML
  1. Image<Hsv, byte> myImage = new Image<Hsv, byte>(100, 100);
  2.  
  3. VectorOfUMat hsvChannels = new VectorOfUMat();
  4. CvInvoke.Split(myImage, hsvChannels);
  5.  
  6. UMat hChannel = hsvChannels[0];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.