Huge MemoryAllocation - ColorMatrix on 3 - 4 MB images
- June 12, 2009
- 1 reply
- 784 views
Hi all
i am currently working on the medical project (built with Flex SDK3.3. and Flash Player 10.0), the project provides the drawing and image manuipulation feature on the (*.JPEG) photos, those JPEG photos are extracted from a medical DICOM format file (XRay, US, CT, etc...) with its size of every single jpeg is most likely around 3 - 4 MB (Dimension 3500 x 3000).
The problem i now encountered is the memory problem. When the 4MB image load completed, the application would occupy around 8x MB memory. However, the issue occur when i going to implement the ColorMatrix which changing the image Brightness, Contrast, etc .. the memory allocation of app. increased significantly (up to 18x MB) MB. As a WEB app., 18x MB is a BIG number and is the serious concern of performance
Hence, hope will get some help from all of you experts ....
or
any alternative way that would able to changing the Brightness, Contrast of the image but with better performance
or
any technical suggestions if i implement like that .. any risks !?
Please help ........ indeed .....
Attached please find the source code.
ponycx113
Regards
