¡@

Home 

c++ Programming Glossary: cy

Inverse fourier transformation in OpenCV

http://stackoverflow.com/questions/10269456/inverse-fourier-transformation-in-opencv

dst normalize src dst 0 1 CV_MINMAX int cx dst.cols 2 int cy dst.rows 2 Mat q0 dst Rect 0 0 cx cy Mat q1 dst Rect cx 0 cx.. int cx dst.cols 2 int cy dst.rows 2 Mat q0 dst Rect 0 0 cx cy Mat q1 dst Rect cx 0 cx cy Mat q2 dst Rect 0 cy cx cy Mat q3.. 2 Mat q0 dst Rect 0 0 cx cy Mat q1 dst Rect cx 0 cx cy Mat q2 dst Rect 0 cy cx cy Mat q3 dst Rect cx cy cx cy Mat tmp..

Fast bignum square computation

http://stackoverflow.com/questions/18465326/fast-bignum-square-computation

k c.dat k l k if k 0 alu.adc c.dat k c.dat k h k for alu.cy k 0 k alu.inc c.dat k c.shl 1 for i 0 i N i 2 i0 i 1 h x.dat.. k c.dat k l k if k 0 alu.adc c.dat k c.dat k h k for alu.cy k 0 k alu.inc c.dat k c.bits c.siz 5 c.exp x.exp x.exp c.siz.. z x y n2 z2 x1.y1 DWORD q new DWORD n 1 q0 q1 qq BYTE cx cy if q NULL _error _arbnum_error_NotEnoughMemory return #define..

modular arithmetics and NTT (finite field DFT) optimizations

http://stackoverflow.com/questions/18577076/modular-arithmetics-and-ntt-finite-field-dft-optimizations

a DWORD fourier_NTT modadd DWORD a DWORD b DWORD d cy a mod a b mod b d a b cy shr a shr b shr a 1 b 1 0x80000000.. modadd DWORD a DWORD b DWORD d cy a mod a b mod b d a b cy shr a shr b shr a 1 b 1 0x80000000 if cy d p if DWORD d DWORD.. a b mod b d a b cy shr a shr b shr a 1 b 1 0x80000000 if cy d p if DWORD d DWORD p d p return d DWORD fourier_NTT modsub..

Rotating a point about another point (2D)

http://stackoverflow.com/questions/2259476/rotating-a-point-about-another-point-2d

need a function like POINT rotate_point float cx float cy float angle POINT p Thanks c algorithm share improve this.. Oh that's easy.. first subtract the pivot point cx cy then rotate it then add the point again. untested POINT rotate_point.. point again. untested POINT rotate_point float cx float cy float angle POINT p float s sin angle float c cos angle translate..