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 8009779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:32:37+00:00 2026-06-04T18:32:37+00:00

I am working on image filter app. I have created the filter using the

  • 0

I am working on image filter app. I have created the filter using the code below:

context = [CIContext contextWithOptions:nil];



    beginImage = [[CIImage alloc] initWithImage:[UIImage imageNamed:@"biscus_small.png"]];


    filter = [CIFilter filterWithName:@"CISepiaTone" 
                                  keysAndValues: kCIInputImageKey, beginImage, 
                        @"inputIntensity", [NSNumber numberWithFloat:0.8], nil];

Then when the user selects the filter I simply get the CIImage after the filter has applied and assign to the UIImageView. For some reason the UIImageView after setImage displays white (nothing).

CIImage *outputImage = [filter outputImage];

   // CGImageRef cgimg = 
   // [context createCGImage:outputImage fromRect:[outputImage extent]];

    UIImage *finalImage = [UIImage imageWithCIImage:outputImage];

    [self.imageView setImage:finalImage];

If I use createCGImage method of the CIContext then it works fine and displays the image with filter but using createCGImage is tremendously slow.

  • 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-04T18:32:39+00:00Added an answer on June 4, 2026 at 6:32 pm

    The reason why CIImage’s -createCGImage:fromRect: is so slow is that this is what actually triggers the processing and output of the raster bitmap. Assigning the output CIImage to a UIImage does not cause the image to be processed and output rendered. You won’t be able to avoid this step when filtering an image via Core Image.

    As I’ve stated in this answer, Core Image’s performance on iOS is a little disappointing as of iOS 5.1. If I may make a suggestion, I’ve built an open source framework that does GPU-accelerated image processing and beats the performance of Core Image under almost all circumstances I’ve tested. For image filtering I’m about 4 times faster than Core Image on an iPhone 4.

    However, there still is some overhead in going from and to a UIImage when filtering, so if you have the ability to work with the raw image bytes, my raw data input and output is much faster than dealing with UIImages. I’m going to add some direct JPEG and PNG input and output in this framework to provide a faster path for this than having to go through UIImage.

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

Sidebar

Related Questions

I'm working on an old-school image warp filter. Essentially, I have a 2D array
I have created one filter which is working fine for all requests which my
I am working on an image generation script in PHP and have gotten it
I'm working on an image processing application where I have two threads on top
I am uploading image to server using base64 its working fine if image is
Im having trouble working grabbing a dynamically created image from this service: http://opsin.ch.cam.ac.uk/opsin/USER-STRUCTURE-TO-GENERATE.png Im
I'm having troubles cropping image. For me CICrop filter is not working properly. If
I am working on an iPhone app for an event and I have to
I'm working with Bing Image Search API using jsonp with jquery $.ajax. I'm able
I'm working on a Javascript/jQuery powered image preloader, and have hit a bit of

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.