Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Image - Image unit question



Hi

A fair while ago I wrote a program called Mac2Spec as part of an effort to learn Obj-C. I've recently revisited it and unsurprisingly it could be improved... The program basically applies a few filters to a perfectly good bitmap converting it into a brightly coloured mess suitable for display on the mighty Sinclair Spectrum.

My question is can these filters be re-written in terms of Core Image? The reason I ask is that the simple examples I've seen so far are of the 'Apply this algorithm to each pixel in the image' variety. I want something a bit different: an ordered dither for example. To do an ordered dither I need to divide the image into squares (4x4 say); count how many pixels in a square are above a threshold; set pixels within the square depending on how many were above the threshold.

Does this sound like the sort of thing that Core Image can do? If so pointers as to how to start are welcome! Does Apple have some good documentation on the CIKernel language? All I found was a mention that it is similar to OpenGL Shading Language (and a plug for a book) but without the 3D bits. The stuff on the web that I've found on the subject concentrates on the 3D bits so that the world may have ever better robotic death spiders...

Cheers

James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.