AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

How to process JP2 images or is Aforge.NET support JP2 image

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

How to process JP2 images or is Aforge.NET support JP2 image

Postby atofael » Tue Feb 27, 2018 6:21 am

Hi,
I can process image like crop, resize, color etc with jpg, png, bitmap etc image format.
Please let me know if there is any way to process for jp2 format images.

I have tried as like bellow;
// load image
Bitmap image = (Bitmap) Bitmap.FromFile( "31-01-2018.jp2");

// format image
AForge.Imaging.Image.FormatImage( ref image );

It give me "OutOfMemoryException".

Thanks
atofael
 
Posts: 1
Joined: Tue Feb 27, 2018 5:48 am

Re: How to process JP2 images or is Aforge.NET support JP2 i

Postby andrew.kirillov » Tue Feb 27, 2018 8:15 am

Hello,

What throws an exception? Bitmap.FromFile() or AForge.Imaging.Image.FormatImage()? If it is the first, then it has nothing to do with AForge.NET. The Bitmap.FromFile() belongs to .NET instead.

Have a look here - it looks like .NET simply does not support JPEG 2000. So you will need to look for additional library for that.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to AForge.NET Framework

cron