Ask Your Question

Revision history [back]

Error while running slic.cpp code

i get error while running the sample code provided in opencv-contrib github.

https://github.com/opencv/opencv_contrib/blob/master/modules/ximgproc/samples/slic.cpp

0xC0000005: Access violation reading location 0x00000000.

after my research i found out its def-referencing a pointer.

the exact location of error is line93 in the code stated in link above.

how can i avoid this error??