KIAS primer

From Cinemachines
Revision as of 11:07, 27 October 2019 by Kzxpr (talk | contribs) (Created page with "== Basic Image Processing == === Displaying an Image === for( int y = 0; y < h; y++ ) { for( int x = 0; x < w; x++ ) { dist.at<Vec3b>(y,x)[0] = sources[1].at<Vec3b>(y,x)[0]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Basic Image Processing

Displaying an Image

for( int y = 0; y < h; y++ ) { for( int x = 0; x < w; x++ ) { dist.at<Vec3b>(y,x)[0] = sources[1].at<Vec3b>(y,x)[0]; dist.at<Vec3b>(y,x)[1] = sources[1].at<Vec3b>(y,x)[1]; dist.at<Vec3b>(y,x)[2] = sources[1].at<Vec3b>(y,x)[2]; } }

where h = screen height, w = screen width and sources[1] = input