Skip to content

Instantly share code, notes, and snippets.

@martin-etchart
Created October 28, 2012 18:56
Show Gist options
  • Save martin-etchart/3969461 to your computer and use it in GitHub Desktop.
Save martin-etchart/3969461 to your computer and use it in GitHub Desktop.
OpenCV to LSD image type conversion (IplImage *frame -> double *image)
uchar *data = (uchar *)frame->imageData;
for (i=0;i<width;i++){
for(j=0;j<height;j++){
image[ i + j * width ] = data[ i + j * width];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment