<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - image processing - Comments</title>
 <link>http://www.newlc.com/en/forum/image-processing-0</link>
 <description>Comments for &quot;image processing&quot;</description>
 <language>en</language>
<item>
 <title>Re: image processing</title>
 <link>http://www.newlc.com/en/forum/image-processing-0#comment-41224</link>
 <description>&lt;p&gt;Are you using a library or previously developed code to do this?, otherwise you can get a pointer to the &quot;raw&quot; data of the bitmap as follows:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;TInt bitmapStride = aBitmap-&amp;gt;DataStride();//amount of bytes per scanline&lt;br /&gt;aBitmap-&amp;gt;LockHeapLC(ETrue);//lock shared heap&lt;br /&gt;TUint32 *bitmapPtr = aBitmap-&amp;gt;DataAddress();&lt;br /&gt;&lt;br /&gt;// Do some image processing here&lt;br /&gt;CleanupStack::PopAndDestroy();//unlock the shared heap&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;Before calling DataAddress() the shared heap &lt;span style=&quot;font-weight:bold&quot;&gt;must &lt;/span&gt;be locked, and afterward it &lt;span style=&quot;font-weight:bold&quot;&gt;must &lt;/span&gt;be unlocked. I asume you will have at least 2 CfbsBitmaps for segmentation and restoration, you only need one heap lock and one unlock, but call it on the larger bitmap, or make sure you call it with ETrue as parameter.&lt;/p&gt;

&lt;p&gt;I think it would be better for memory not to convert the image to a .bmp, segmentation shouldn&#039;t be to difficult to do inline.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 03 Sep 2007 17:03:32 +0200</pubDate>
 <dc:creator>Werries</dc:creator>
 <guid isPermaLink="false">comment 41224 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: image processing</title>
 <link>http://www.newlc.com/en/forum/image-processing-0#comment-41222</link>
 <description>&lt;p&gt;Werries,Thanks for your reply.&lt;/p&gt;

&lt;p&gt;But in my project,I need to do some digital image processing. Not only  rotate or scale the bmp,but also segment and restore the bitmap. Exactly  I know using png or jpeg is smaller,but it is hard to processing. &lt;/p&gt;

&lt;p&gt;You said &quot;call CFbsBitmap::SetDisplayMode(EColor256)&quot;, I will try to do it.&lt;/p&gt;

&lt;p&gt;If somebody can give me some examples,I will appreciation your kindness.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
 <pubDate>Mon, 03 Sep 2007 15:24:09 +0200</pubDate>
 <dc:creator>kentan</dc:creator>
 <guid isPermaLink="false">comment 41222 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: image processing</title>
 <link>http://www.newlc.com/en/forum/image-processing-0#comment-41221</link>
 <description>&lt;p&gt;Hi I don&#039;t know if this will save the file as 8 bpp, but you may call CFbsBitmap::SetDisplayMode(EColor256) and then make it a .bmp, I&#039;ve never converted a bitmap to 8 bpp though and are therefore not sure if it is actually supported.&lt;/p&gt;

&lt;p&gt;No you don&#039;t need to convert the image to bmp before image processing, in fact you&#039;l have to write you&#039;re own image processing functions to do things like rotate or scale the bmp. When the SDK docs speak about a bitmap it usually refers to a CFbsBitmap. So if you would only like to do operations on a image just leave it as a CFbsBitmap.&lt;/p&gt;

&lt;p&gt;If you would just like to save a smaller file then considder using png or jpeg.&lt;/p&gt;</description>
 <pubDate>Mon, 03 Sep 2007 14:42:28 +0200</pubDate>
 <dc:creator>Werries</dc:creator>
 <guid isPermaLink="false">comment 41221 at http://www.newlc.com</guid>
</item>
<item>
 <title>image processing</title>
 <link>http://www.newlc.com/en/forum/image-processing-0</link>
 <description>&lt;p&gt;Hi,all&lt;/p&gt;

&lt;p&gt;I use N73 to process image.Firstly I obtain CFbsBitmap object from CCamera and then save it as bmp format.But I find the saved file is 24-bit image and very large.I want to convert it into 8-bit bmp fomat.Can anybody do me a favor and tell me which interface or function in symbian can do this.Or give me some examples.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/image-processing-0&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/image-processing-0#comments</comments>
 <category domain="http://www.newlc.com/en/forums/multimedia">Multimedia</category>
 <pubDate>Mon, 03 Sep 2007 14:11:44 +0200</pubDate>
 <dc:creator>kentan</dc:creator>
 <guid isPermaLink="false">18841 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
