Guest User

Untitled

a guest
Jan 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. npp::ImageCPU_32f_C1 hostKernel(3,3); //allocate space for 3x3 convolution kernel
  2.  
  3. //want to set hostKernel to [-1 0 1; -1 0 1; -1 0 1]
  4.  
  5. hostKernel[0][0] = -1; //this doesn't compile
  6. hostKernel(0,0) = -1; //this doesn't compile
  7. hostKernel.at(0,0) = -1; //this doesn't compile
  8.  
  9. hostKernel.pixels(0,0)[0].x = -1;
Add Comment
Please, Sign In to add comment