Hi all, I am new to processing an I need help...
First of all I have to say that I am italian and I am sorry for my poor english so I hope you will understand my question.
I shouldconvertthepixelsofa grayscale image (I use only white and black, not intermediate colours) to binary numbers, 0ifthe pixel iswhite and 1 if it is black and I should put thesevaluesinsomearray.Supposethat theimage isdividedintorowsandcolumnsof pixels,thethingisprettyeasybecause with thefunctionpixel() I can make an arrayofvaluesfor each column.InsteadI haveto doaparticular thing:assuming to have a round clock with an imagein its own background,whiletheseconds handmoves,it takesthepixelsin the imagebelowandmake up thearray...
I have written this little sketch:
PImage img; float degree = 0; // holds the angle for rotation int counter = 0; // holds the steps for rotations