MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / setColorSpace

Method setColorSpace

3rd-party/cove/libvectorizer/Vectorizer.cpp:205–219  ·  view source on GitHub ↗

! Set color space in which the classification will be performed. */

Source from the content-addressed store, hash-verified

203
204/*! Set color space in which the classification will be performed. */
205void Vectorizer::setColorSpace(ColorSpace colorSpace)
206{
207 this->colorSpace = colorSpace;
208 switch (colorSpace)
209 {
210 case COLSPC_RGB:
211 mc = std::make_unique<MapColorRGB>(p);
212 break;
213 case COLSPC_HSV:
214 mc = std::make_unique<MapColorHSV>(p);
215 break;
216 default:
217 qWarning("UNIMPLEMENTED colorspace");
218 }
219}
220
221/*! Set Minkowski metrics parameter.
222 \sa MapColor */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected