03-18-2015 09:40 AM
You don't even need to convert the boolean to a number. Just autoindex on the 2D boolean array using a stack of two FOR loops and whenever a TRUE is encountered fire the laser based on the value of the two indices.
Alternatively, reshape to a 1D array and use "Search 1D array" for all TRUEs until you run out of elements. Calculate the x and y position from the index and the row lenght using quotient & remainder.
How fast is the laser positioning system? Does the mechanism scan at a constant speed over the enther grid or does it give fast random access to any xy position? The best solution really depends on the hardware.
03-18-2015 11:06 AM
Hello.
1- This is researching product so speed in first level is not so important. i am working to make this printer by myself.
2- Scanning mechanism is constant. And I want do this linear. If I divide for example plan my work to 10X10 pixels, I working on 10 line. Scanning first line till end and go other line and so on. In this progress every pixel is on (255) will be pulsed by laser and other pixels will not pulsed.
I will be happy if you guide me in this proposal.
Regard
Amir kamyab