0

I see this piece of code in OpenCV.

__m128i delta = _mm_set1_epi8(-128),
        t = _mm_set1_epi8((char)threshold),
        K16 = _mm_set1_epi8((char)K);
(void)K16;
(void)delta;
(void)t;

Can someone explain to me what it does ? All I got is what the sse functions do but what happens in next three line is unclear

user2864740
  • 54,112
  • 10
  • 112
  • 187
adikshit
  • 205
  • 2
  • 8

1 Answers1

0

Sets the 128 bit value to the signed char input in 8-bit strides: http://msdn.microsoft.com/en-us/library/6e14xhyf(v=vs.90).aspx

  • 2
    Oh, sorry I misread your question. The void casts might be there to stop the compiler from complaining about those vars being unused. Are they used further on in the code? – user3712302 Jun 10 '14 at 00:14
  • 2
    Yes they are used. (Refer to fast.cpp if you have opencv code) – adikshit Jun 10 '14 at 00:21