|
|
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » [SOLVED] accessing pixels in JPEG created from memory buffer
[SOLVED] accessing pixels in JPEG created from memory buffer [message #21408] |
Mon, 18 May 2009 23:41 |
qwerty
Messages: 130 Registered: May 2006
|
Experienced Member |
|
|
posting question in different way:
how can I create JPEG image in U++ from memory buffer data(where real JPEG image data lies (String - when I '<<' to FileOut, viewer shows it right)) and how can I access pixels(RGB ideally) or whole 'uncompressed' data array, to work with it in different application, to make from that BMP-like data other object.
I can't get through it many hours.
thank you
[Updated on: Tue, 19 May 2009 14:40] Report message to a moderator
|
|
|
|
Re: accessing pixels in JPEG created from memory buffer [message #21416 is a reply to message #21414] |
Tue, 19 May 2009 10:02 |
qwerty
Messages: 130 Registered: May 2006
|
Experienced Member |
|
|
ok,
I have extracted JPEG image from MJPEG stream, code: <a href=" http://www.ultimatepp.org/forum/index.php?t=msg&th=4396& amp; amp; amp; amp;start=0&" target="_blank"></a> .
There is JPEG_data, which contains data. When I put them to file and add '.jpeg' extension, file is accepted by picture viewer.
I written it to file just to be sure, that data has right format.
now.
I want this data, JPEG_data convert somehow to a state, where I can manipulate with them, like I am manipulating with BMP-like data. uncompress somehow.
so, for example, I want to write something similar like MyPictureFromJPEG.pixels[x][y] = ColorRED; etc.
I have no code, I have just String of data and don't know, how to decompress and work with them, like I said.
(don't want to do it with external library, when I can do it in U++, for now)
I want to convert them to OpenCV library, but this I can handle, when I will be in THAT state.
thank you and sorry for my english, I am quite tired today.
[Updated on: Tue, 19 May 2009 10:05] Report message to a moderator
|
|
|
|
|
|
accessing pixels in JPEG created from memory buffer [message #21422 is a reply to message #21421] |
Tue, 19 May 2009 14:40 |
qwerty
Messages: 130 Registered: May 2006
|
Experienced Member |
|
|
ohhhh yesss...
I am very thank you to both of you, because everything works perfeclty. what more, OpenCV likes native U++ format of low level data.
very thank you
mrjt shows me converting connections
koldo shows me, how to manipulate with individual elements
great, I am going to do some coffe and continue... :>
have a nice life moments...
[Updated on: Tue, 19 May 2009 14:44] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Apr 28 23:31:57 CEST 2024
Total time taken to generate the page: 0.05345 seconds
|
|
|