You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am implementing effects like blur, contrast etc. I am using MTICoreImageUnaryFilter for that. Whenever I try to apply 5-7 such filter memory jumps and app is crashing. The reference image size I am using is 4480x6720 as I want to export original size image.
Is there any special function I have to use to reclaim memory?
The text was updated successfully, but these errors were encountered:
@ChanakyaHirpara you can reclaimResources() from the MTIcontext and use an autoreleasepool where needed. However with an image that large, you are likely to see high memory usage regardless. You may want to downsample the image, blur, then resample. Blurring is fine to lose some fidelity.
I am using FilterGraph and before I can reclaimResources it crashes. It is working good with downsampled but I want to apply those filter chains on the original image for export reasons.
Checklist
I am implementing effects like blur, contrast etc. I am using MTICoreImageUnaryFilter for that. Whenever I try to apply 5-7 such filter memory jumps and app is crashing. The reference image size I am using is 4480x6720 as I want to export original size image.
Is there any special function I have to use to reclaim memory?
The text was updated successfully, but these errors were encountered: