Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6971511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:50:57+00:00 2026-05-27T16:50:57+00:00

I am trying to apply some filters on a Image. To apply the filter,

  • 0

I am trying to apply some filters on a Image. To apply the filter, i have to first create an array:

int[] arr = new int[image.width*image.height];// to store each pixel

and then i can pass it to the function which will apply the filter.

Problem: If i have an image greater than 500kb(around), OOME is there saying hello to me.

What i tried: Divide the full image into four parts and apply filter on each part and then join them but again i got OOME in the same line, i.e when creating the int array.

I dont want to compromise on the quality of Image and downsize it.

What i really want is just a hint/logic/architecture which can work on the large image as big as 5 mb….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:50:58+00:00Added an answer on May 27, 2026 at 4:50 pm

    One way to handle this is to tile the image, like you suggested. Catch the OOME, and keep halving the size of your tiles until the array allocates successfully.

    Then process each tile sequentially, re-using the array each time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a given markup that I'm trying to apply to some style on.
I'm trying to apply some css to an image tag if the image is
I'm trying to create a dynamic element, apply some css on it from an
I am trying to do some image processing and I would like to apply
i m trying to implement some image filters fro that i use this code
I have 2 filters I'm trying to apply using Ninject's BindFilter<> syntax, and they
I am trying to apply some transformations on images using a CGContextRef. I am
i am trying to apply some condition for an Auto generated textfield, the script
I'm trying to cut a xml into parts and then apply it some transformations.
I'm trying to simply draw some text with a stroke and then apply a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.