performance - Which is a better way to extract grayscale pixel values in Android in terms of battery drain and processing time? -


hope well.

i @ of crossroads in current project, needing extract grayscale pixel values sorted per discussion in previous post (and kindly , thoroughly answered).

the 2 main methods aware of are:

  1. extract grayscale yuv preview.

  2. take photo, , convert rgb values grayscale.

one of main aims simplicity, project whole needs it, question - whaich of these 2 (or method not aware of) reliable/stable, less taxing on battery , processing time?

please note, not after code samples, looking people may have experienced, may hve read (in articles etc) or have intuitive hunch about.

thank taking time read this.

i'm working on project uses pixel values calculations, , noticed it's better use values directly yuv preview if need grayscale, or need use entire preview calculation.

if want use rgb values, or calculate based on part of preview it's better convert area need converting bitmap , using instance.

however, depends on you're trying achieve since no 2 projects alike. if have time, why not (rougly) implement both methods , quick test see works better in terms of cpu usage , total processing time? that's how found best method particular problem.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -