Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-01-2011, 07:50 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 498
nick.keroulis is on a distinguished road
Default CAFilter, it's there but i can't use it.

CAFilter Wiki: CAFilter - iPhone Development Wiki

Code:
CAFilter* filter = [CAFilter filterWithName:@"gaussianBlur"];
[filter setValue:[NSNumber numberWithFloat:5] forKey:@"inputRadius"];
window.layer.filters = [NSArray arrayWithObject:filter];
The CAFilter is not recognized. Even if i import the QuartzCore.
What should i do?
__________________
iDamaged Hands-On Preview. I like this game check it out.
nick.keroulis is offline   Reply With Quote
Old 12-01-2011, 09:26 AM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

I think it's a private class.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 12-01-2011, 12:57 PM   #3 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by nick.keroulis View Post
CAFilter Wiki: CAFilter - iPhone Development Wiki

Code:
CAFilter* filter = [CAFilter filterWithName:@"gaussianBlur"];
[filter setValue:[NSNumber numberWithFloat:5] forKey:@"inputRadius"];
window.layer.filters = [NSArray arrayWithObject:filter];
The CAFilter is not recognized. Even if i import the QuartzCore.
What should i do?
It's called CIFilter, not CAFilter.

CI stands for Core Image.

CA stands for Core Animation, which is a different framework.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Old 12-02-2011, 08:42 AM   #4 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 498
nick.keroulis is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
It's called CIFilter, not CAFilter.

CI stands for Core Image.

CA stands for Core Animation, which is a different framework.
Thanks Dun,

I think i have read about that somewhere but im confused cause in the link i ve
posted it refers to image filters. How on earth can that be assosiated with
animations? Anyway i have found several examples on Gaussian Blur filter
actually 2 examples for iPhone and 3 for the Mac but i need it to use graphics
acceleration. I need it to be as fast as lightning. Is there anyway i can do
that? even with the CALayer or is it not possible on iPhone?
__________________
iDamaged Hands-On Preview. I like this game check it out.

Last edited by nick.keroulis; 12-02-2011 at 08:47 AM.
nick.keroulis is offline   Reply With Quote
Old 12-02-2011, 10:21 AM   #5 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by nick.keroulis View Post
Thanks Dun,

I think i have read about that somewhere but im confused cause in the link i ve
posted it refers to image filters. How on earth can that be assosiated with
animations? Anyway i have found several examples on Gaussian Blur filter
actually 2 examples for iPhone and 3 for the Mac but i need it to use graphics
acceleration. I need it to be as fast as lightning. Is there anyway i can do
that? even with the CALayer or is it not possible on iPhone?
Yes.

Look in Apple's Docs under CIFilter. It's under Apple's Core Image framework, which uses the graphics hardware to do the filtering quite fast. They are easy to use.

As best I can tell, the site you linked to had all the correct info, but every reference to the name was wrong. If you just substitute "CIFilter" everywhere they said "CAFilter", all the information is correct.

There is a gaussian blur filter built into Core image, documented (with the wrong name CAFilter) in the link you posted. It takes a radius and amount parameter, just like the gaussian blur in Photoshop.

You could also do this using OpenGL ES 2.0 and custom shaders, but that is pretty advanced stuff. I have a fair amount of experience with OpenGL on the Mac, and am just finishing my first project using OpenGL ES 2 and shaders under iOS. I really struggled at first, and that was with a strong foundation in OpenGL concepts. If you've never tackled OpenGL before, and are not an advanced programmer, expect to be in over your head. Tricky stuff, that.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Old 12-02-2011, 03:08 PM   #6 (permalink)
Registered Member
 
apatsufas's Avatar
 
Join Date: Jan 2011
Location: Thessaloniki, Greece
Posts: 121
apatsufas is on a distinguished road
Default

Core Image Filter Reference

There is an Gaussian Filter in Core Image but its only available for Mac OS X not iPhone for now at least.
__________________
SQLed - Your Database Manager on the go

iAZConverter - Converts everything from A to Z
apatsufas is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 395
16 members and 379 guests
AppsBlogger, chiataytuday, Clouds, David-T, dedeys78, Duncan C, e2applets, EvilElf, heshiming, iekei, leostc, LunarMoon, Murphy, sacha1996, Sami Gh, teebee74
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,912
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:41 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0