19template <
class T1,
class T2>
20static inline void CopyPixel(
const T1 *src, T2 *dest)
116 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
119static inline void CopyPixel(
const PixelRgb* src, PixelMono16* dest)
121 *dest =
static_cast<yarp::sig::PixelMono16
>((src->r + src->g + src->b)/3);
124static inline void CopyPixel(
const PixelRgb* src, PixelInt* dest)
126 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
129static inline void CopyPixel(
const PixelRgb* src, PixelHsv* dest)
136static inline void CopyPixel(
const PixelRgb* src, PixelMonoSigned* dest)
138 *dest =
static_cast<char>((src->r + src->g + src->b)/3);
141static inline void CopyPixel(
const PixelRgb* src, PixelRgbSigned* dest)
148static inline void CopyPixel(
const PixelRgb* src, PixelRgba* dest)
156static inline void CopyPixel(
const PixelRgb* src, PixelBgra* dest)
164static inline void CopyPixel(
const PixelRgb* src, PixelRgbInt* dest)
171static inline void CopyPixel(
const PixelRgb* src, PixelFloat* dest)
173 *dest = ((src->r + src->g + src->b)/3.0f);
176static inline void CopyPixel(
const PixelRgb* src, PixelRgbFloat* dest)
183static inline void CopyPixel(
const PixelRgb* src, PixelBgr* dest)
190static inline void CopyPixel(
const PixelRgb* src, PixelHsvFloat* dest)
206static inline void CopyPixel(
const PixelHsv* src, PixelMono16* dest)
213static inline void CopyPixel(
const PixelHsv* src, PixelRgb* dest)
220static inline void CopyPixel(
const PixelHsv* src, PixelRgba* dest)
227static inline void CopyPixel(
const PixelHsv* src, PixelBgra* dest)
234static inline void CopyPixel(
const PixelHsv* src, PixelRgbInt* dest)
241static inline void CopyPixel(
const PixelHsv* src, PixelBgr* dest)
248static inline void CopyPixel(
const PixelHsv* src, PixelMonoSigned* dest)
255static inline void CopyPixel(
const PixelHsv* src, PixelRgbSigned* dest)
262static inline void CopyPixel(
const PixelHsv* src, PixelFloat* dest)
269static inline void CopyPixel(
const PixelHsv* src, PixelRgbFloat* dest)
276static inline void CopyPixel(
const PixelHsv* src, PixelHsvFloat* dest)
283static inline void CopyPixel(
const PixelHsv* src, PixelInt* dest)
294 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
297static inline void CopyPixel(
const PixelBgr* src, PixelMono16* dest)
299 *dest =
static_cast<yarp::sig::PixelMono16
>((src->r + src->g + src->b)/3);
302static inline void CopyPixel(
const PixelBgr* src, PixelInt* dest)
304 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
307static inline void CopyPixel(
const PixelBgr* src, PixelHsv* dest)
312static inline void CopyPixel(
const PixelBgr* src, PixelMonoSigned* dest)
314 *dest =
static_cast<char>((src->r + src->g + src->b)/3);
317static inline void CopyPixel(
const PixelBgr* src, PixelRgbSigned* dest)
324static inline void CopyPixel(
const PixelBgr* src, PixelFloat* dest)
326 *dest = ((src->r + src->g + src->b)/3.0f);
329static inline void CopyPixel(
const PixelBgr* src, PixelRgbFloat* dest)
336static inline void CopyPixel(
const PixelBgr* src, PixelRgb* dest)
343static inline void CopyPixel(
const PixelBgr* src, PixelRgba* dest)
351static inline void CopyPixel(
const PixelBgr* src, PixelBgra* dest)
359static inline void CopyPixel(
const PixelBgr* src, PixelRgbInt* dest)
366static inline void CopyPixel(
const PixelBgr* src, PixelHsvFloat* dest)
375 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
378static inline void CopyPixel(
const PixelRgba* src, PixelMono16* dest)
380 *dest =
static_cast<yarp::sig::PixelMono16
>((src->r + src->g + src->b)/3);
383static inline void CopyPixel(
const PixelRgba* src, PixelInt* dest)
385 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
388static inline void CopyPixel(
const PixelRgba* src, PixelHsv* dest)
393static inline void CopyPixel(
const PixelRgba* src, PixelMonoSigned* dest)
395 *dest =
static_cast<char>((src->r + src->g + src->b)/3);
398static inline void CopyPixel(
const PixelRgba* src, PixelRgbSigned* dest)
405static inline void CopyPixel(
const PixelRgba* src, PixelFloat* dest)
407 *dest = ((src->r + src->g + src->b)/3.0f);
410static inline void CopyPixel(
const PixelRgba* src, PixelRgbFloat* dest)
417static inline void CopyPixel(
const PixelRgba* src, PixelRgb* dest)
424static inline void CopyPixel(
const PixelRgba* src, PixelBgra* dest)
432static inline void CopyPixel(
const PixelRgba* src, PixelBgr* dest)
439static inline void CopyPixel(
const PixelRgba* src, PixelRgbInt* dest)
446static inline void CopyPixel(
const PixelRgba* src, PixelHsvFloat* dest)
455 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
458static inline void CopyPixel(
const PixelBgra* src, PixelMono16* dest)
460 *dest =
static_cast<yarp::sig::PixelMono16
>((src->r + src->g + src->b)/3);
463static inline void CopyPixel(
const PixelBgra* src, PixelInt* dest)
465 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
468static inline void CopyPixel(
const PixelBgra* src, PixelHsv* dest)
473static inline void CopyPixel(
const PixelBgra* src, PixelMonoSigned* dest)
475 *dest =
static_cast<char>((src->r + src->g + src->b)/3);
478static inline void CopyPixel(
const PixelBgra* src, PixelRgbSigned* dest)
485static inline void CopyPixel(
const PixelBgra* src, PixelFloat* dest)
487 *dest = ((src->r + src->g + src->b)/3.0f);
490static inline void CopyPixel(
const PixelBgra* src, PixelRgbFloat* dest)
497static inline void CopyPixel(
const PixelBgra* src, PixelRgb* dest)
504static inline void CopyPixel(
const PixelBgra* src, PixelRgba* dest)
512static inline void CopyPixel(
const PixelBgra* src, PixelBgr* dest)
519static inline void CopyPixel(
const PixelBgra* src, PixelRgbInt* dest)
526static inline void CopyPixel(
const PixelBgra* src, PixelHsvFloat* dest)
535 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
538static inline void CopyPixel(
const PixelRgbInt* src, PixelMono16* dest)
540 *dest =
static_cast<yarp::sig::PixelMono16
>((src->r + src->g + src->b)/3);
543static inline void CopyPixel(
const PixelRgbInt* src, PixelInt* dest)
545 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
548static inline void CopyPixel(
const PixelRgbInt* src, PixelHsv* dest)
553static inline void CopyPixel(
const PixelRgbInt* src, PixelMonoSigned* dest)
555 *dest =
static_cast<char>((src->r + src->g + src->b)/3);
558static inline void CopyPixel(
const PixelRgbInt* src, PixelRgbSigned* dest)
560 dest->r =
static_cast<char>(src->r);
561 dest->g =
static_cast<char>(src->g);
562 dest->b =
static_cast<char>(src->b);
565static inline void CopyPixel(
const PixelRgbInt* src, PixelFloat* dest)
567 *dest = ((src->r + src->g + src->b)/3.0f);
570static inline void CopyPixel(
const PixelRgbInt* src, PixelRgbFloat* dest)
572 dest->r =
static_cast<float>(
static_cast<int>(src->r));
573 dest->g =
static_cast<float>(
static_cast<int>(src->g));
574 dest->b =
static_cast<float>(
static_cast<int>(src->b));
577static inline void CopyPixel(
const PixelRgbInt* src, PixelRgb* dest)
579 dest->r =
static_cast<unsigned char>(src->r);
580 dest->g =
static_cast<unsigned char>(src->g);
581 dest->b =
static_cast<unsigned char>(src->b);
584static inline void CopyPixel(
const PixelRgbInt* src, PixelBgr* dest)
586 dest->r =
static_cast<unsigned char>(src->r);
587 dest->g =
static_cast<unsigned char>(src->g);
588 dest->b =
static_cast<unsigned char>(src->b);
591static inline void CopyPixel(
const PixelRgbInt* src, PixelRgba* dest)
593 dest->r =
static_cast<unsigned char>(src->r);
594 dest->g =
static_cast<unsigned char>(src->g);
595 dest->b =
static_cast<unsigned char>(src->b);
599static inline void CopyPixel(
const PixelRgbInt* src, PixelBgra* dest)
601 dest->r =
static_cast<unsigned char>(src->r);
602 dest->g =
static_cast<unsigned char>(src->g);
603 dest->b =
static_cast<unsigned char>(src->b);
607static inline void CopyPixel(
const PixelRgbInt* src, PixelHsvFloat* dest)
614static inline void CopyPixel(
const PixelMonoSigned* src, PixelRgb* dest)
621static inline void CopyPixel(
const PixelMonoSigned* src, PixelRgba* dest)
629static inline void CopyPixel(
const PixelMonoSigned* src, PixelBgra* dest)
637static inline void CopyPixel(
const PixelMonoSigned* src, PixelRgbInt* dest)
644static inline void CopyPixel(
const PixelMonoSigned* src, PixelBgr* dest)
651static inline void CopyPixel(
const PixelMonoSigned* src, PixelHsv* dest)
658static inline void CopyPixel(
const PixelMonoSigned* src, PixelRgbSigned* dest)
665static inline void CopyPixel(
const PixelMonoSigned* src, PixelRgbFloat* dest)
672static inline void CopyPixel(
const PixelMonoSigned* src, PixelHsvFloat* dest)
684static inline void CopyPixel(
const PixelMonoSigned* src, PixelInt* dest)
689static inline void CopyPixel(
const PixelMonoSigned* src, PixelMono16* dest)
691 *dest =
static_cast<yarp::sig::PixelMono16
>(*src);
698 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
701static inline void CopyPixel(
const PixelRgbSigned* src, PixelMono16* dest)
703 *dest =
static_cast<PixelMono16
>((src->r + src->g + src->b)/3);
706static inline void CopyPixel(
const PixelRgbSigned* src, PixelInt* dest)
708 *dest =
static_cast<int>((src->r + src->g + src->b)/3);
711static inline void CopyPixel(
const PixelRgbSigned* src, PixelHsv* dest)
716static inline void CopyPixel(
const PixelRgbSigned* src, PixelMonoSigned* dest)
718 *dest =
static_cast<char>((src->r + src->g + src->b)/3);
721static inline void CopyPixel(
const PixelRgbSigned* src, PixelRgb* dest)
728static inline void CopyPixel(
const PixelRgbSigned* src, PixelRgba* dest)
736static inline void CopyPixel(
const PixelRgbSigned* src, PixelBgra* dest)
744static inline void CopyPixel(
const PixelRgbSigned* src, PixelRgbInt* dest)
751static inline void CopyPixel(
const PixelRgbSigned* src, PixelBgr* dest)
758static inline void CopyPixel(
const PixelRgbSigned* src, PixelFloat* dest)
760 *dest = ((src->r + src->g + src->b)/3.0f);
763static inline void CopyPixel(
const PixelRgbSigned* src, PixelRgbFloat* dest)
770static inline void CopyPixel(
const PixelRgbSigned* src, PixelHsvFloat* dest)
779 *dest =
static_cast<unsigned char>(*src);
782static inline void CopyPixel(
const PixelFloat* src, PixelMono16* dest)
784 *dest =
static_cast<yarp::sig::PixelMono16
>(*src);
787static inline void CopyPixel(
const PixelFloat* src, PixelInt* dest)
789 *dest =
static_cast<unsigned char>(*src);
792static inline void CopyPixel(
const PixelFloat* src, PixelMonoSigned* dest)
794 *dest =
static_cast<char>(*src);
797static inline void CopyPixel(
const PixelFloat* src, PixelRgb* dest)
799 dest->r =
static_cast<unsigned char>(*src);
800 dest->g =
static_cast<unsigned char>(*src);
801 dest->b =
static_cast<unsigned char>(*src);
804static inline void CopyPixel(
const PixelFloat* src, PixelRgba* dest)
806 dest->r =
static_cast<unsigned char>(*src);
807 dest->g =
static_cast<unsigned char>(*src);
808 dest->b =
static_cast<unsigned char>(*src);
812static inline void CopyPixel(
const PixelFloat* src, PixelBgra* dest)
814 dest->r =
static_cast<unsigned char>(*src);
815 dest->g =
static_cast<unsigned char>(*src);
816 dest->b =
static_cast<unsigned char>(*src);
820static inline void CopyPixel(
const PixelFloat* src, PixelRgbInt* dest)
822 dest->r =
static_cast<int>(*src);
823 dest->g =
static_cast<int>(*src);
824 dest->b =
static_cast<int>(*src);
827static inline void CopyPixel(
const PixelFloat* src, PixelBgr* dest)
829 dest->r =
static_cast<unsigned char>(*src);
830 dest->g =
static_cast<unsigned char>(*src);
831 dest->b =
static_cast<unsigned char>(*src);
834static inline void CopyPixel(
const PixelFloat* src, PixelHsv* dest)
836 dest->v =
static_cast<unsigned char>(*src);
841static inline void CopyPixel(
const PixelFloat* src, PixelRgbSigned* dest)
843 dest->r =
static_cast<signed char>(*src);
844 dest->g =
static_cast<signed char>(*src);
845 dest->b =
static_cast<signed char>(*src);
848static inline void CopyPixel(
const PixelFloat* src, PixelRgbFloat* dest)
855static inline void CopyPixel(
const PixelFloat* src, PixelHsvFloat* dest)
866 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
869static inline void CopyPixel(
const PixelRgbFloat* src, PixelInt* dest)
871 *dest =
static_cast<unsigned char>((src->r + src->g + src->b)/3);
874static inline void CopyPixel(
const PixelRgbFloat* src, PixelMono16* dest)
876 *dest =
static_cast<yarp::sig::PixelMono16
>((src->r + src->g + src->b)/3);
879static inline void CopyPixel(
const PixelRgbFloat* src, PixelHsv* dest)
884static inline void CopyPixel(
const PixelRgbFloat* src, PixelMonoSigned* dest)
886 *dest =
static_cast<char>((src->r + src->g + src->b)/3);
889static inline void CopyPixel(
const PixelRgbFloat* src, PixelRgb* dest)
891 dest->r =
static_cast<unsigned char>(src->r);
892 dest->g =
static_cast<unsigned char>(src->g);
893 dest->b =
static_cast<unsigned char>(src->b);
896static inline void CopyPixel(
const PixelRgbFloat* src, PixelRgba* dest)
898 dest->r =
static_cast<unsigned char>(src->r);
899 dest->g =
static_cast<unsigned char>(src->g);
900 dest->b =
static_cast<unsigned char>(src->b);
904static inline void CopyPixel(
const PixelRgbFloat* src, PixelBgra* dest)
906 dest->r =
static_cast<unsigned char>(src->r);
907 dest->g =
static_cast<unsigned char>(src->g);
908 dest->b =
static_cast<unsigned char>(src->b);
912static inline void CopyPixel(
const PixelRgbFloat* src, PixelRgbInt* dest)
914 dest->r =
static_cast<int>(src->r);
915 dest->g =
static_cast<int>(src->g);
916 dest->b =
static_cast<int>(src->b);
919static inline void CopyPixel(
const PixelRgbFloat* src, PixelBgr* dest)
921 dest->r =
static_cast<unsigned char>(src->r);
922 dest->g =
static_cast<unsigned char>(src->g);
923 dest->b =
static_cast<unsigned char>(src->b);
926static inline void CopyPixel(
const PixelRgbFloat* src, PixelFloat* dest)
928 *dest = ((src->r + src->g + src->b)/3);
931static inline void CopyPixel(
const PixelRgbFloat* src, PixelRgbSigned* dest)
933 dest->r =
static_cast<signed char>(src->r);
934 dest->g =
static_cast<signed char>(src->g);
935 dest->b =
static_cast<signed char>(src->b);
938static inline void CopyPixel(
const PixelRgbFloat* src, PixelHsvFloat* dest)
950static inline void CopyPixel(
const PixelHsvFloat* src, PixelMono16* dest)
955static inline void CopyPixel(
const PixelHsvFloat* src, PixelRgb* dest)
960static inline void CopyPixel(
const PixelHsvFloat* src, PixelBgr* dest)
965static inline void CopyPixel(
const PixelHsvFloat* src, PixelRgba* dest)
970static inline void CopyPixel(
const PixelHsvFloat* src, PixelBgra* dest)
975static inline void CopyPixel(
const PixelHsvFloat* src, PixelRgbInt* dest)
980static inline void CopyPixel(
const PixelHsvFloat* src, PixelMonoSigned* dest)
985static inline void CopyPixel(
const PixelHsvFloat* src, PixelRgbSigned* dest)
990static inline void CopyPixel(
const PixelHsvFloat* src, PixelFloat* dest)
995static inline void CopyPixel(
const PixelHsvFloat* src, PixelRgbFloat* dest)
1000static inline void CopyPixel(
const PixelHsvFloat* src, PixelHsv* dest)
1005static inline void CopyPixel(
const PixelHsvFloat* src, PixelInt* dest)
1012static inline void CopyPixel(
const PixelInt* src, PixelRgb* dest)
1014 dest->r =
static_cast<char>(*src);
1015 dest->g =
static_cast<char>(*src);
1016 dest->b =
static_cast<char>(*src);
1019static inline void CopyPixel(
const PixelInt* src, PixelRgba* dest)
1021 dest->r =
static_cast<char>(*src);
1022 dest->g =
static_cast<char>(*src);
1023 dest->b =
static_cast<char>(*src);
1027static inline void CopyPixel(
const PixelInt* src, PixelBgra* dest)
1029 dest->r =
static_cast<char>(*src);
1030 dest->g =
static_cast<char>(*src);
1031 dest->b =
static_cast<char>(*src);
1035static inline void CopyPixel(
const PixelInt* src, PixelRgbInt* dest)
1042static inline void CopyPixel(
const PixelInt* src, PixelBgr* dest)
1044 dest->r =
static_cast<char>(*src);
1045 dest->g =
static_cast<char>(*src);
1046 dest->b =
static_cast<char>(*src);
1049static inline void CopyPixel(
const PixelInt* src, PixelHsv* dest)
1052 dest->h = dest->s = 0;
1055static inline void CopyPixel(
const PixelInt* src, PixelRgbSigned* dest)
1062static inline void CopyPixel(
const PixelInt* src, PixelFloat* dest)
1064 *dest =
static_cast<float>(*src);
1067static inline void CopyPixel(
const PixelInt* src, PixelRgbFloat* dest)
1069 dest->r =
static_cast<float>(*src);
1070 dest->g =
static_cast<float>(*src);
1071 dest->b =
static_cast<float>(*src);
1074static inline void CopyPixel(
const PixelInt* src, PixelHsvFloat* dest)
1076 dest->v = float(*src);
1081static inline void CopyPixel(
const PixelInt* src, PixelMonoSigned* dest)
1083 *dest =
static_cast<char>(*src >> 1);
1091static inline void CopyPixel(
const PixelInt* src, PixelMono16* dest)
1093 *dest =
static_cast<yarp::sig::PixelMono16
>(*src);
1098static inline void CopyPixel(
const PixelMono16* src, PixelRgb* dest)
1100 dest->r =
static_cast<char>(*src);
1101 dest->g =
static_cast<char>(*src);
1102 dest->b =
static_cast<char>(*src);
1105static inline void CopyPixel(
const PixelMono16* src, PixelRgba* dest)
1107 dest->r =
static_cast<char>(*src);
1108 dest->g =
static_cast<char>(*src);
1109 dest->b =
static_cast<char>(*src);
1113static inline void CopyPixel(
const PixelMono16* src, PixelBgra* dest)
1115 dest->r =
static_cast<char>(*src);
1116 dest->g =
static_cast<char>(*src);
1117 dest->b =
static_cast<char>(*src);
1121static inline void CopyPixel(
const PixelMono16* src, PixelRgbInt* dest)
1123 dest->r =
static_cast<int>(
static_cast<unsigned>(*src));
1124 dest->g =
static_cast<int>(
static_cast<unsigned>(*src));
1125 dest->b =
static_cast<int>(
static_cast<unsigned>(*src));
1128static inline void CopyPixel(
const PixelMono16* src, PixelInt* dest)
1130 *dest =
static_cast<int>(
static_cast<unsigned>(*src));
1133static inline void CopyPixel(
const PixelMono16* src, PixelBgr* dest)
1135 dest->r =
static_cast<char>(*src);
1136 dest->g =
static_cast<char>(*src);
1137 dest->b =
static_cast<char>(*src);
1140static inline void CopyPixel(
const PixelMono16* src, PixelHsv* dest)
1147static inline void CopyPixel(
const PixelMono16* src, PixelRgbSigned* dest)
1154static inline void CopyPixel(
const PixelMono16* src, PixelFloat* dest)
1156 *dest =
static_cast<float>(*src);
1159static inline void CopyPixel(
const PixelMono16* src, PixelRgbFloat* dest)
1161 dest->r =
static_cast<float>(*src);
1162 dest->g =
static_cast<float>(*src);
1163 dest->b =
static_cast<float>(*src);
1166static inline void CopyPixel(
const PixelMono16* src, PixelHsvFloat* dest)
1168 dest->v =
static_cast<float>(*src);
1173static inline void CopyPixel(
const PixelMono16* src, PixelMonoSigned* dest)
1175 *dest =
static_cast<char>(*src >> 1);
1183static inline void CopyPixel(
const PixelInt* src, PixelInt* dest)
1199template <
class T1,
class T2>
1204 const T1 *src = osrc;
1206 const int p1 =
PAD_BYTES (w *
sizeof(T1), q1);
1207 const int p2 =
PAD_BYTES (w *
sizeof(T2), q2);
1209 const int step2 = w*
sizeof(T2) + p2;
1210 DBG printf(
"q1 %d q2 %d (%dx%d) inc %d %d\n", q1, q2, w, h, p1, p2);
1213 odest =
reinterpret_cast<T2*
>(((
char *)odest) + step2*(h-1));
1217 for (
int i=0; i<h; i++) {
1218 DBG printf(
"x,y = %d,%d\n", 0,i);
1219 for (
int j = 0; j < w; j++) {
1225 src =
reinterpret_cast<const T1*
>(((
char *)src) + p1);
1226 odest =
reinterpret_cast<T2*
>(((
char *)odest) + step2*(flip?-1:1));
1247#define HASH(id1, id2) ((int)(((int)(id1%65537))*11 + ((long int)(id2))))
1248#define HANDLE_CASE(len, x1, T1, q1, o1, x2, T2, q2, o2) CopyPixels(reinterpret_cast<const T1*>(x1), q1, reinterpret_cast<T2*>(x2), q2, w, h, o1!=o2);
1249#define MAKE_CASE(id1, id2) case HASH(id1, id2): HANDLE_CASE(len, src, Def_##id1, quantum1, topIsLow1, dest, Def_##id2, quantum2, topIsLow2); break;
1252void Image::copyPixels(
const unsigned char *src,
size_t id1,
1253 char unsigned *dest,
size_t id2,
size_t w,
size_t h,
1254 size_t imageSize,
size_t quantum1,
size_t quantum2,
1255 bool topIsLow1,
bool topIsLow2)
1257 DBG printf(
"copyPixels...\n");
1259 if (id1==id2&&quantum1==quantum2&&topIsLow1==topIsLow2) {
1260 memcpy(dest,src,imageSize);
1265 switch(
HASH(id1,id2)) {
1487 printf(
"*** Tried to copy type %s to %s\n",
1494 DBG printf(
"... done copyPixels\n");
PixelFloat Def_VOCAB_PIXEL_MONO_FLOAT
PixelRgbFloat Def_VOCAB_PIXEL_RGB_FLOAT
PixelRgb Def_VOCAB_PIXEL_RGB
#define MAKE_CASE(id1, id2)
static void CopyPixel(const T1 *src, T2 *dest)
PixelInt Def_VOCAB_PIXEL_INT
PixelBgra Def_VOCAB_PIXEL_BGRA
static void CopyPixels(const T1 *osrc, int q1, T2 *odest, int q2, int w, int h, bool flip)
PixelHsvFloat Def_VOCAB_PIXEL_HSV_FLOAT
PixelRgba Def_VOCAB_PIXEL_RGBA
PixelBgr Def_VOCAB_PIXEL_BGR
PixelRgbSigned Def_VOCAB_PIXEL_RGB_SIGNED
PixelHsv Def_VOCAB_PIXEL_HSV
PixelMono16 Def_VOCAB_PIXEL_MONO16
PixelMonoSigned Def_VOCAB_PIXEL_MONO_SIGNED
PixelRgbInt Def_VOCAB_PIXEL_RGB_INT
@ VOCAB_PIXEL_MONO_SIGNED
A mini-server for performing network communication in the background.
std::string decode(NetInt32 code)
Convert a vocabulary identifier into a string.
size_t PAD_BYTES(size_t len, size_t pad)
computes the padding of YARP images.