how to read pixels on a picture
Hi all,
I would like to scan a picture like those radar scope with a bar turning around the center of the screen and reading each batch of pixels as turning around . I just foresee it for B&W pictures, no need of colors. It would be a king of stepper but turning around instead of sliding from LH to RH .
any idea to how begin prototyping this in Jitter ?
thanks
Hi all,
any idea for this sleeping project that need to be woken up ;p
"getpixel" to [jit.matrix] offers that basic job, in any form you wish.
to read the whole image pixel by pixel you want to use 2 [uzi] - one controlling the other - one for the column and one for the row.
It's actually getcell
! Like sending getcell 2 4 to a [jit.matrix] will output a message from its rightmost outlet with the value of the cell at the (2, 4) coordinate.
If you want to read cell values in a specific pattern like described in the first post, you'll generally want to fill a [coll] with the coordinates of all cells you want to check and dump
the [coll] to get all coordinates one by one and use them with the getcell
message. You can also dynamically generate these coordinates using [Uzi] and a bit of math.
You can also check xray.jit.cellvalue from the Xray package (available in the package manager) which allows to provide a matrix as a "read map" and outputs a smaller matrix containing the number of read cells with their values.
Thanks Roman
Thanks TFL
I go to experiment that way
you could use jit.rota to get started. jit.gen will always come in useful, also as replacement entirely, however, that may be a bit advanced stuff. you. can also check out jit.lcd for line drawing, which would perhaps suit you better than this silly cone here…