Signal name:SIGSEGV with for loop
-
i come across one error during debugging.
Signal name: SIGSEGV
Signal meaning: Segmentation faulti have went through such kinds of questions but still not find the answer.
I use for loop to do image processing to process every pixel.
but when i minimize the number of rows there is no such kind of problem, but minimizing number of columns does not help.in the for loop, i only use vector iterators as pointers like P.at<Vec2f>(i,j)[0].
BTW the image size is 1360 x 1024, like (1360/2)x1024 and 1360x(1024/4) are possible to work -
hi, thank you for your reply, but how to check memory range and pointer arithmetics? I am really a newee
-
hi, thank you for your reply, but how to check memory range and pointer arithmetics? I am really a newee
[quote author="McLion" date="1404465994"]I suspect that a pointer addresses a memory address/area it is not allowed to. You may check memory range available and your pointer arithmetics.[/quote]