HSI.h
上传用户:mjs2008
上传日期:2021-05-16
资源大小:5089k
文件大小:1k
源码类别:

生物技术

开发平台:

Visual C++

  1. /**$6
  2.  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3.  *
  4.  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5.  */
  6. #if !defined(COLORCONV_H_)
  7. #define COLORCONV_H_
  8. struct RGB
  9. {
  10. unsigned char b;
  11. unsigned char g;
  12. unsigned char r;
  13. };
  14. struct HSI
  15. {
  16. double Hue;
  17. double Saturation;
  18. double Intensity;
  19. };
  20. struct FLAGS
  21. {
  22. char visited:1;
  23. char marked:1;
  24. char edged:1;
  25. char center:1;
  26. char color:1;
  27. char dummy:3;
  28. };
  29. int RgbToHsi(RGB *, HSI *);
  30. #endif