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

  • Home
  • SEARCH
  • 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 8805771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:57:04+00:00 2026-06-14T01:57:04+00:00

I am using Core Image and GPUImage to make some filters in an iPhone

  • 0

I am using Core Image and GPUImage to make some filters in an iPhone app. I seem to be running out of memory and crashing with larger images. I think this can be solved if I can split the input image into multiple parts.

How to efficiently split an image in multiple parts for image processing, then recombine to output the resulting image as a whole in iOS?

  • 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-06-14T01:57:05+00:00Added an answer on June 14, 2026 at 1:57 am
    -(void)getMultipleImages:(UIImage*)image AndNumberOfPart:(NSInteger)matrixSize{
    
    
    
    CGSize size = image.size;
    
    //for storing rect values of puzzle boxess
    NSMutableArray *puzzleRectArr = [[NSMutableArray alloc]init];
    NSMutableArray *puzzleCroppedObj = [[NSMutableArray alloc]init];
    
    int widthD = size.width;
    int heightD = size.height;
    
    float boxWidth = widthD/matrixSize;
    float boxHeight = heightD/matrixSize;
    
    
    for (int i = 0; i < matrixSize*matrixSize; i++) {
    
        int x = (widthD/matrixSize)/2 + (widthD/matrixSize) *(i%matrixSize)-boxWidth/2;
        int y = (heightD/matrixSize)/2 + (heightD/matrixSize)* (i/matrixSize)-boxHeight/2;
    
    
        CGRect rect = CGRectMake(x, y, boxWidth, boxHeight);
        [puzzleRectArr addObject:[NSValue valueWithCGRect:rect]];
    
        CGImageRef imageRef = CGImageCreateWithImageInRect([self.imgActual CGImage], rect);
        UIImage *croppedImage = [UIImage imageWithCGImage:imageRef];
    //----------------------------------------------------------------------        
        //here You can find the part image
        [puzzleCroppedObj addObject:croppedImage];
    
    //----------------------------------------------------------------------                
    
    
         CGImageRelease(imageRef);
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Core Image filters and trying to make the CIEdgeWork filter. When
I want to ask that i am using core image and applying some filter
How do you adjust contrast or sharpness using the Core Image framework? Which filters
I'm working on a small iphone app using Core Data, where I got a
I am trying to to pixel-by-pixel image filters using Core Graphics (breaking a CGImage
Does anyone knows how to release memory while using core image framework to apply
I've been using Core Plot to draw some charts for an iOS app I've
I am using Core Image and would like to produce a black and white
Using core data I'd like to fetch some data. My model uses some abstract
I am using core location framework inside my app and sending updated location to

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.