<< return to Pixycam.com

Grabbing pixels in M0

Hello, I have a question regarding the grabM0R3 and lineM0R3 functions in frame_m0.c. Why is lineM0R3 called 2 times for every iteration of the loop, with memy and memc swapped?

Hello,
I believe it has to do with the fact that the pixels our of the image sensor are Bayer pattern.

Edward

Ok, sorry to bother again. So what is the resolution of the image from camera in line-tracking mode? I suppose the height is 104 px, because that’s how many times the loop goes iterates, and the width is?

The raw resolution of the line tracking algorithm is 632×108. The higher horizontal resolution is important for barcode detection/decoding. The line/vector coordinates have lower resolution because they are formed on a 79×52 occupancy grid and memory constraints prevent higher resolutions.

From our API documentation here: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:line_api

1 Like