| Reply | « Previous Thread | Next Thread » |
|
Hi all,
Can anyone help me in capturing RAW image on N70. I am using videoControl.getSnapshot("encoding=jpeg") to caputre the image. Now instead of jpeg i want the image in raw format 1 byte for each red, blue and green value. |
|
Not possible. You can access the image's pixel data itself, but it will always be a JPEG (i.e. with visible artifacts, oversharpening, colour space transforms...).
Moritz Voss MEF Mobile Entertainment Factory [url]http://www.m-e-f.net[/url] |
|
Thanx for reply
how i can access image pixel data ? is it by getRGB() method? if not what is the other way? |
|
Well, im not sure if this helps but i've heard that the PNG image-specification is a bitmap so it might be possible to decode the byte-data you get using encoding=png from understanding abit about the PNG specification.
My understanding of JPEG is that it undergoes alot of transformations and it wont allow you to do this once you are in jpeg-form. This is because jpeg does a fourier transform to go into the frequency domain (basically accurate pixel data is lost), it is only possible to change it back to the raw pixels by applying an inverse-fourier transform, multiplying by the inverse-quantization matrix.. etc.. So i'd suggest having a look into the png spec (: |
|
That being said, there is a project going on in the Python S60 forums - which the N70 is a S60 device.. and can run Python.. that does exactly this and finds the RGB colours.
Link is at http://discussion.forum.nokia.com/fo...ad.php?t=82955 And here is some sample code of what he's doing.. apparently there's a RGB mode for taking snapshots in Python def m_scan(): global v v = 0 im = camera.take_photo(mode='RGB12', size = (160,120)) for y in range(121): if v ==1: break else: for x in range(161): valor = im.getpixel((x, y)) r = valor[0][0] g = valor[0][1] b = valor[0][2] if r > 100: if g < 100: if b < 50: c.point((x,y),0x00ff,width=5) global v v = v + 1 break |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Capturing the image from Nokia S40 3rd handsets. | salopge | Mobile Java Media (Graphics & Sounds) | 22 | 2006-04-12 23:56 |
| Waiting for capturing and saving the image by camera | sjsahu | General Symbian C++ | 2 | 2006-03-08 12:36 |
| HELP: Mutable Image to Immutable Image? | rj_cybersilver | Mobile Java Media (Graphics & Sounds) | 1 | 2005-03-26 10:58 |
| Image capturing using MMAPI of J2ME in series 60 | adhiyal | Mobile Java Media (Graphics & Sounds) | 1 | 2004-10-01 08:25 |
| Loading Image data from 'raw' bytes | LongSteve | Mobile Java General | 2 | 2002-11-20 18:38 |