You Are Here:

Community: Developer Discussion Boards

#1 Old Capturing Raw Image N70 - 2006-06-14, 12:54

Join Date: Feb 2006
Posts: 16
waqas16
Offline
Registered User
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.
Reply With Quote

#2 Old Re: Capturing Raw Image N70 - 2006-06-14, 12:55

Join Date: Feb 2006
Posts: 16
Location: Bonn, Germany
Send a message via ICQ to Thygrrr Send a message via Yahoo to Thygrrr
Thygrrr
Offline
Registered User
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]
Reply With Quote

#3 Old Re: Capturing Raw Image N70 - 2006-06-14, 13:31

Join Date: Feb 2006
Posts: 16
waqas16
Offline
Registered User
Thanx for reply

how i can access image pixel data ? is it by getRGB() method? if not what is the other way?
Reply With Quote

#4 Old Re: Capturing Raw Image N70 - 2006-06-21, 10:34

Join Date: Nov 2004
Posts: 105
rexwal
Offline
Regular Contributor
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 (:
Reply With Quote

#5 Old Re: Capturing Raw Image N70 - 2006-06-21, 10:36

Join Date: Nov 2004
Posts: 105
rexwal
Offline
Regular Contributor
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ