8000 objdetect: added ColorNames features by mshabunin · Pull Request #27381 · opencv/opencv · GitHub
[go: up one dir, main page]

Skip to content

objdetect: added ColorNames features #27381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

mshabunin
Copy link
Contributor
@mshabunin mshabunin commented May 29, 2025

WIP

TODO:

@inproceedings{van2007applying,
  title={Applying color names to image description},
  author={Van de Weijer, Joost and Schmid, Cordelia},
  booktitle={2007 IEEE International Conference on Image Processing},
  volume={3},
  pages={III--493},
  year={2007},
  organization={IEEE}
}

@article{van2009learning,
  title={Learning color names for real-world applications},
  author={Van De Weijer, Joost and Schmid, Cordelia and Verbeek, Jakob and Larlus, Diane},
  journal={IEEE Transactions on Image Processing},
  volume={18},
  number={7},
  pages={1512--1523},
  year={2009},
  publisher={IEEE}
}

@inproceedings{danelljan2014adaptive,
  title={Adaptive color attributes for real-time visual tracking},
  author={Danelljan, Martin and Shahbaz Khan, Fahad and Felsberg, Michael and Van de Weijer, Joost},
  booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
  pages={1090--1097},
  year={2014}
}

typedef Vec<float, 10> FeatureType;
virtual ~ColorNamesFeatures() {}
CV_WRAP virtual void compute(InputArray image_patch, OutputArray feature_vector) = 0;
static Ptr<ColorNamesFeatures> create(const std::string & table_file);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to add create with in-memory table. It's needed on iOS, Android and some other platforms.

Comment on lines +710 to +711
typedef Vec<uchar, 3> PixType;
typedef Vec<float, 10> FeatureType;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need it in public API?

@asmorkalov asmorkalov added this to the 4.13.0 milestone Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0