<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem with Encoding a 16 bit image to Grayscale jpeg image wi in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792973#M2563</link>
    <description>&lt;P&gt;Hi Vladimir&lt;BR /&gt;&lt;BR /&gt;I have tried with couple of jpeg viewer such as IrfanView, Picasa, JPEGCrop etc.&lt;BR /&gt;None of them can understand the file format. &lt;BR /&gt;I am not able to launch picnic application as it is linked with IPP dlls. I have only static IPP libs. &lt;BR /&gt;Also it requires some other QT libraries too.&lt;BR /&gt;&lt;BR /&gt;I have attached a lossless JPEG file. Can you please see if you can open in picnic.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dhruba&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2011 18:06:18 GMT</pubDate>
    <dc:creator>Dhruba_Mahanta</dc:creator>
    <dc:date>2011-07-13T18:06:18Z</dc:date>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image with JPEG_LOSSLESS option</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792968#M2558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to IPP UIC codecs. My requirement is to encode a 16 bit pixel image to grayscale jpeg format. I need to maintain high quality with lossless compression.&lt;/P&gt;&lt;P&gt;Here is what I am doing: &lt;/P&gt;&lt;P&gt;***********************************************************&lt;/P&gt;&lt;P&gt;CIppImage imageIn;&lt;/P&gt;&lt;P&gt;PARAMS_JPEG param ;&lt;/P&gt;&lt;P&gt;param.nthreads = 1;&lt;/P&gt;&lt;P&gt;param.quality = 100;&lt;/P&gt;&lt;P&gt;param.color = IC_GRAY;&lt;/P&gt;&lt;P&gt;param.mode = JPEG_LOSSLESS;&lt;/P&gt;&lt;P&gt;param.sampling = IS_444;&lt;/P&gt;&lt;P&gt;param.restart_interval = 0;&lt;/P&gt;&lt;P&gt;param.huffman_opt = 0;&lt;/P&gt;&lt;P&gt;param.point_transform = 0;&lt;/P&gt;&lt;P&gt;param.predictor = 1;&lt;/P&gt;&lt;P&gt;param.dct_scale = JD_1_1;&lt;/P&gt;&lt;P&gt;param.comment_size = 0;&lt;/P&gt;&lt;P&gt;CMy16BitImage sourceImg;&lt;/P&gt;&lt;P&gt;//Get the source image&lt;/P&gt;&lt;P&gt;int nHeight(sourceImg.Height()), nWidth(sourceImg.Width());&lt;/P&gt;&lt;P&gt;unsigned short* pSourceImgBuff = sourceImg.GetImageBuffer(); &lt;/P&gt;&lt;P&gt;unsigned char* pImageBuffer = new unsigned char[nHeight*nWidth];&lt;/P&gt;&lt;P&gt;//Construct the destination image buffer&lt;/P&gt;&lt;P&gt;unsigned char* pTempBuff = pSourceImgBuff;&lt;/P&gt;&lt;P&gt;for(int i = 0; i &amp;lt; nHeight; ++i)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for(int j = 0; j &amp;lt; nWidth; ++j)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;*pTempBuff = *pSourceImgBuff ; &lt;/P&gt;&lt;P&gt;++pTempBuff ;&lt;/P&gt;&lt;P&gt;++pSourceImgBuff ;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;imageIn.Attach(nHeight, nWidth, 1, 8, (void*)pSourceImgBuff, 0);&lt;/P&gt;&lt;P&gt;CStdFileOutput foJPEG;&lt;/P&gt;&lt;P&gt;if(!BaseStream::IsOk(foJPEG.Open("C:\\\\testOut.jpeg")))&lt;/P&gt;&lt;P&gt;return 1;&lt;/P&gt;&lt;P&gt;imageIn.Sampling(IS_444);&lt;/P&gt;&lt;P&gt;imageIn.Color(IC_GRAY); &lt;/P&gt;&lt;P&gt;SaveImageJPEG(imageIn, param, foJPEG);&lt;/P&gt;&lt;P&gt;*************************************************************&lt;/P&gt;&lt;P&gt;Result: JPEG Image has generated but unable to view in any image viewer including mspaint.&lt;/P&gt;&lt;P&gt;Format is not recognised and errors out.&lt;/P&gt;&lt;P&gt;But if I change the mode as below, I can see some image.&lt;/P&gt;&lt;P&gt;param.mode = JPEG_BASELINE&lt;/P&gt;&lt;P&gt;What am I looking for:&lt;/P&gt;&lt;P&gt;1. Some help to correct the above code so that the image can be viewed.&lt;/P&gt;&lt;P&gt;2. The best param settings for GRAYSCALE LOSSLESS encoding &lt;/P&gt;&lt;P&gt;3. Can I directly attach the 16 bit image buffer to CIppImage without converting to a unsigned char*. I know that for this to happen the precesion param should be 16. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dhruba&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 12:12:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792968#M2558</guid>
      <dc:creator>Dhruba_Mahanta</dc:creator>
      <dc:date>2011-07-07T12:12:26Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792969#M2559</link>
      <description>Hi Dhruba,&lt;BR /&gt;&lt;BR /&gt;according your code it seems you have created a valid lossless JPEG file. Note, the most of popular imaging software does not support lossless JPEG format or 16-bit per color channel images. As lossless JPEG format is widely used in medical-orientedsoftware you may want look for any of those applications to view a lossless JPEG image.&lt;BR /&gt;&lt;BR /&gt;Another option you may use IPP picnic demo application.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Thu, 07 Jul 2011 12:23:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792969#M2559</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-07-07T12:23:25Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792970#M2560</link>
      <description>Hi Vladimir&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. &lt;BR /&gt;I am using Windows Photo Viewer, MS Paint, which supposed to have support for LOSSLESS JPEG.&lt;BR /&gt;I will also try with picnic demo application.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dhruba</description>
      <pubDate>Fri, 08 Jul 2011 15:33:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792970#M2560</guid>
      <dc:creator>Dhruba_Mahanta</dc:creator>
      <dc:date>2011-07-08T15:33:21Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792971#M2561</link>
      <description>If I remember correctly, standard JPEG format does not support more than 12 bits of precision. Not a single image viewer/editor can support more than 12 bits and very few of them support 12 bits.&lt;BR /&gt;&lt;BR /&gt;16-bit gray can only be encoded and shown using JPEG2000 format, TIFF format, or PNG format.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2011 10:08:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792971#M2561</guid>
      <dc:creator>levicki</dc:creator>
      <dc:date>2011-07-11T10:08:49Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792972#M2562</link>
      <description>No, Jpeg has three compression domains:&lt;BR /&gt;- Baseline&lt;BR /&gt;- Extended&lt;BR /&gt;- Lossless&lt;BR /&gt;&lt;BR /&gt;Baseline = 8 bits per channel lossy or uncompressed.&lt;BR /&gt;Extended = 12 bits per channel lossy or uncompressed.&lt;BR /&gt;Lossless = 2-16 bits per channel lossless.&lt;BR /&gt;&lt;BR /&gt;(If I'm right)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2011 16:17:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792972#M2562</guid>
      <dc:creator>Thomas_Jensen1</dc:creator>
      <dc:date>2011-07-13T16:17:57Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792973#M2563</link>
      <description>&lt;P&gt;Hi Vladimir&lt;BR /&gt;&lt;BR /&gt;I have tried with couple of jpeg viewer such as IrfanView, Picasa, JPEGCrop etc.&lt;BR /&gt;None of them can understand the file format. &lt;BR /&gt;I am not able to launch picnic application as it is linked with IPP dlls. I have only static IPP libs. &lt;BR /&gt;Also it requires some other QT libraries too.&lt;BR /&gt;&lt;BR /&gt;I have attached a lossless JPEG file. Can you please see if you can open in picnic.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dhruba&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 18:06:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792973#M2563</guid>
      <dc:creator>Dhruba_Mahanta</dc:creator>
      <dc:date>2011-07-13T18:06:18Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792974#M2564</link>
      <description>Your file does not contain a picture -- apart from the short header the rest of the file are all zeros.&lt;BR /&gt;&lt;BR /&gt;If I am not mistaken, more than 12 bits is not possible with JPEG in any mode, only with JPEG2000.&lt;BR /&gt;&lt;BR /&gt;My assumption is based on the IJG JPEG library source code which is the basis for all JPEG encoders/decoders used in all image viewing and editing applications.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2011 09:09:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792974#M2564</guid>
      <dc:creator>levicki</dc:creator>
      <dc:date>2011-07-14T09:09:59Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792975#M2565</link>
      <description>Thanks Levicki to giving a hint that the all image bytes are zeros.&lt;BR /&gt;I am not sure about the 16 bit support for JPEG Lossless.&lt;BR /&gt;&lt;BR /&gt;But, I have the same issue even for 8 bit imahges.&lt;BR /&gt;Can somebody able toencode any Lossless JPEG image using IPP codecs and view inany common image viewer.&lt;BR /&gt;Please share the image and basic header configurations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dhruba</description>
      <pubDate>Fri, 15 Jul 2011 05:53:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792975#M2565</guid>
      <dc:creator>Dhruba_Mahanta</dc:creator>
      <dc:date>2011-07-15T05:53:40Z</dc:date>
    </item>
    <item>
      <title>Problem with Encoding a 16 bit image to Grayscale jpeg image wi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792976#M2566</link>
      <description>&lt;P&gt;IPP JPEG supportsfollowing compression modes defined by JPEG ISO/IEC 10918:&lt;BR /&gt;1. Baseline, 8-bits, DCT based process, huffman entropy coding&lt;BR /&gt;2. Extended baseline, 8- and 12-bits, DCT based process, huffman entropy coding&lt;BR /&gt;3. Lossless, 1..16 bits, prediction based, huffman entropy coding&lt;BR /&gt;&lt;BR /&gt;Most of widely available image viewers and editors only support Baseline and Extended Baseline modes with 8-bits per color component.&lt;BR /&gt;To test lossless image created by IPP JPEG encoder you need to look for a specialized software (frequently medical related image vievers do support lossless compression modes as it required by DICOM specification)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2011 07:13:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-Encoding-a-16-bit-image-to-Grayscale-jpeg-image/m-p/792976#M2566</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-08-01T07:13:41Z</dc:date>
    </item>
  </channel>
</rss>

