Skip to content

Commit bac6410

Browse files
thomassedlmayerpmai
authored andcommitted
Add first draft of additional color models
Signed-off-by: Thomas Sedlmayer <tsedlmayer@pmsfit.de>
1 parent cddc509 commit bac6410

File tree

1 file changed

+191
-0
lines changed

1 file changed

+191
-0
lines changed

osi_common.proto

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,3 +611,194 @@ message SpatialSignalStrength
611611
//
612612
optional double signal_strength = 3;
613613
}
614+
615+
//
616+
// \brief The description of a color within available color spaces.
617+
//
618+
// ColorDescription represents the visual, non-semantic appearance of an object, structure or feature within various available color spaces.
619+
//
620+
// Depending on the context, this may define the color of an object or structure a priori (e.g. GroundTruth objects)
621+
// or describe a perceived color (e.g. CameraDetections).
622+
//
623+
message ColorDescription
624+
{
625+
// Greyscale color model
626+
//
627+
optional ColorGrey grey = 1;
628+
629+
// RGB (Red, Green, Blue) color model
630+
//
631+
optional ColorRGB rgb = 2;
632+
633+
// RGBIR (Red, Green, Blue, Infrared) color model
634+
//
635+
optional ColorRGBIR rgbir = 3;
636+
637+
// HSV (Hue, Saturation, Value) color model
638+
//
639+
optional ColorHSV hsv = 4;
640+
641+
// LUV (Luminance, U-coordinate, V-coordinate) color model
642+
//
643+
optional ColorLUV luv = 5;
644+
645+
// CMYK (Cyan, Magenta, Yellow, Key) color model
646+
//
647+
optional ColorCMYK cmyk = 6;
648+
}
649+
650+
//
651+
// \brief Greyscale color model
652+
//
653+
// ColorGrey defines a greyscale.
654+
//
655+
message ColorGrey
656+
{
657+
// Definition of a greyscale
658+
//
659+
// Range: [0,1]
660+
//
661+
optional double grey = 1;
662+
}
663+
664+
//
665+
// RGB color model
666+
//
667+
// ColorRGB provides values for red, green and blue.
668+
//
669+
message ColorRGB
670+
{
671+
// Red ratio
672+
//
673+
// Range: [0,1]
674+
//
675+
optional double red = 1;
676+
677+
// Green ratio
678+
//
679+
// Range: [0,1]
680+
//
681+
optional double green = 2;
682+
683+
// Blue ratio
684+
//
685+
// Range: [0,1]
686+
//
687+
optional double blue = 3;
688+
}
689+
690+
//
691+
// \brief RGBIR color model
692+
//
693+
// ColorRGBIR provides values for red, green, blue and infrared.
694+
//
695+
message ColorRGBIR
696+
{
697+
// Red ratio
698+
//
699+
// Range: [0,1]
700+
//
701+
optional double red = 1;
702+
703+
// Green ratio
704+
//
705+
// Range: [0,1]
706+
//
707+
optional double green = 2;
708+
709+
// Blue ratio
710+
//
711+
// Range: [0,1]
712+
//
713+
optional double blue = 3;
714+
715+
// Infrared
716+
//
717+
// Range: [0,1]
718+
//
719+
optional double infrared = 4;
720+
}
721+
722+
//
723+
// \brief HSV color model
724+
//
725+
// ColorHSV provides values for hue, saturation and value/brightness.
726+
//
727+
message ColorHSV
728+
{
729+
// Hue
730+
//
731+
// Range: [0,1]
732+
//
733+
optional double hue = 1;
734+
735+
// Saturation
736+
//
737+
// Range: [0,1]
738+
//
739+
optional double saturation = 2;
740+
741+
// Value
742+
//
743+
// Range: [0,1]
744+
//
745+
optional double value = 3;
746+
}
747+
748+
//
749+
// \brief LUV color model
750+
//
751+
// ColorLUV provides values for luminance, U- and V-coordinate.
752+
//
753+
message ColorLUV
754+
{
755+
// Luminance
756+
//
757+
// Range: [0,1]
758+
//
759+
optional double luminance = 1;
760+
761+
// U-coordinate
762+
//
763+
// Range: [0,1]
764+
//
765+
optional double u = 2;
766+
767+
// V-Coordinate
768+
//
769+
// Range: [0,1]
770+
//
771+
optional double v = 3;
772+
}
773+
774+
//
775+
// \brief CMYK colors model
776+
//
777+
// ColorCMYK provides values for cyan, magenta, yellow and key/black.
778+
//
779+
message ColorCMYK
780+
{
781+
// Cyan ratio
782+
//
783+
// Range: [0,1]
784+
//
785+
optional double cyan = 1;
786+
787+
// Magenta ratio
788+
//
789+
// Range: [0,1]
790+
//
791+
optional double magenta = 2;
792+
793+
// Yellow ratio
794+
//
795+
// Range: [0,1]
796+
//
797+
optional double yellow = 3;
798+
799+
// Black ratio
800+
//
801+
// Range: [0,1]
802+
//
803+
optional double key = 4;
804+
}

0 commit comments

Comments
 (0)