Pages: 1 2 [3]   Go Down
Author Topic: HacroCam - recalculate to greyscale before sending (processing example)  (Read 4104 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 227
Posts: 14024
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did the int -> byte affect the performance?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Full Member
***
Karma: 1
Posts: 152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

At which point do you mean? The convertion from grayscale to color() data type in processing?
« Last Edit: January 14, 2013, 02:01:49 am by robvoi » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 227
Posts: 14024
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


See reply #26 - http://arduino.cc/forum/index.php/topic,141081.msg1068522.html#msg1068522 -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Full Member
***
Karma: 1
Posts: 152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, it doesn't make a difference. But I use it anyway now. It saves some memory.
Logged

Crestline, CA
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry if I'm breaking the necro rule with this reply - I couldn't find anything explicit saying what the rule is - but I'm using a HacroCam myself and have a suggestion for using greyscale.

If you look at http://hacromatic.com/page/19, they talk about "switch[ing] the camera over into YUV mode and then just read the Y byte" "so we can store a pixel in a single byte" rather than going through the kinds of hoops that you went through above. The downsides are that 1) you need to change the HacroCam's firmware to do this, requiring a PDI programmer, and 2) that you won't have the option of enabling and disabling it at will. The upside is that every pixel is only 8 bits, speeding everything else up.

I'm using the tutorial on that page myself, though I'm having different trouble that I'll be posting in a new thread.
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice to see that there is at least one other user with a Hacrocam!  smiley

Thanks a lot for the information. I don't have a programmer - so nothing I could test. But thanks anyway.
Logged

Pages: 1 2 [3]   Go Up
Jump to: