ArticleslgStudy

science

Core Image

Core Image is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Core Image rather than just read about it. In short: Core Image is a pixel-accurate, near-realtime, non-destructive image processing technology in Mac OS X. Implemented as part of the QuartzCore framework of Mac OS X 10.4 and later, Core Image provides a plugin-based architecture for applying filters and effects within the Quartz graphics rendering layer.

Core Image — main illustration
Core Image — illustration

Key takeaways

  • Core Image belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Core Image to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Core Image from memory before moving on to harder problems.

Reference excerpt

Core Image is a pixel-accurate, near-realtime, non-destructive image processing technology in Mac OS X. Implemented as part of the QuartzCore framework of Mac OS X 10.4 and later, Core Image provides a plugin-based architecture for applying filters and effects within the Quartz graphics rendering layer. The framework was later added to iOS in iOS 5.

Overview Core Image abstracts the pixel-level manipulation process required when applying a filter to an image, making it simple for applications to implement image transformation capabilities without extensive coding. In a simple implementation, Core Image applies a single Image Filter to the pixel data of a given source to produce the transformed image. Each Image Filter specifies a single transform or effect, either built into Core Image or loaded from a plugin called an Image Unit. Combined with preset or user-defined input parameters, the filter can be applied to the original pixel data without modifying it, thereby providing non-destructive image editing. Like Photoshop, Core Image can apply multiple filters to the same image source. Instead of applying a series of filters individually, Core Image assembles a dynamic instruction pipeline so that only one calculation needs to be applied to the pixel data to achieve a cumulative effect. Applying the pixel operations associated with multiple filters can be achieved simultaneously and without a significant increase in processing time. Regardless of the number of filters, Core Image assembles the code for this instruction pipeline with a just-in-time compiler, which is executed by either the CPU or graphics card's GPU, whichever can perform the calculation faster. Filters are written in the Core Image Kernel Language, which shares a subset of commands with OpenGL Shading Language (GLSL). When a compatible GPU is available, the Core Image compiler writes the instruction pipeline using GLSL, handling buffers and states transparently. Although GPU rendering is preferred, the compiler can operate in a CPU fallback mode, generating commands suitable for the current CPU architecture instead. CPU fallback uses the vector processing capabilities of the current CPU or CPUs, and it is multi-processor aware. Thus, Core Image performance depends on the GLSL capabilities of the GPU or the processing power of the CPU. With a supported GPU, most effects can be rendered in realtime or near-realtime.

History and implementation Core Image was introduced with Mac OS X 10.4. Early examples of its use can be found in the ripple effect in Dashboard, and Apple's professional digital photography application, Aperture. Starting with Mac OS X 10.5, any application that implements Image Kit can utilize Core Image. Preview and iPhoto are common examples. In 2011, Apple added Core Image to iOS in iOS 5.0. The Xcode Tools include Core Image Fun House and Quartz Composer; both utilize Core Image. The Core Image plugin architecture was inspired by that of Core Audio.

Pixel accuracy All pixel processing provided by an Image Unit is performed in a pre-multiplied alpha (RGBA) color space, storing four color channels: red, green, blue, and transparency (alpha). Each color channel is represented by a 32-bit, floating point number. This provides exceptional color depth, far greater than can be perceived by the human eye, as each pixel is represented by a 128-bit vector (four 32-bit color channels). For color spaces of lower bit-depth, the floating-point calculation model employed by Core Image provides exceptional performance, which is useful when processing multiple images or video frames.

Supported graphics processors Any programmable GPU that supports the required OpenGL Shader (GLSL) commands is Core Image capable. Apple has used the following graphics cards to support Core Image GPU processing in Mac OS X 10.4 and Aperture, so the following list could be considered an example of minimum requirements:

ATI Mobility Radeon 9700 (Mobility Radeon 9600 is also capable) ATI Radeon 9550, 9600, 9650, 9600 XT, 9600 Pro, 9700 Pro, 9800 XT, and 9800 Pro ATI Radeon X600 XT, X600 Pro, X800 XT, X850 XT, X1600, X1900 XT ATI Radeon HD 2400 XT, HD 2600 Pro, and HD 2600 XT NVIDIA GeForce FX 5200 Ultra, FX Go 5200 NVIDIA GeForce 6600, 6600 LE, 6800 Ultra DDL, and 6800 GT DDL NVIDIA GeForce 7300 GT, 7600 GT, and 7800 GT NVIDIA GeForce 8600M GT & 8800 GT NVIDIA GeForce 9400M & 9600M GT NVIDIA GeForce GT 120 & GT 130 NVIDIA GeForce GTX 285 NVIDIA Quadro FX 4500 & FX 5600 NVIDIA Quadro FX 4800 NVIDIA Quadro 4000 NVIDIA GeForce 320M NVIDIA GeForce GT 330M NVIDIA GeForce GT 640M NVIDIA GeForce GT 650M NVIDIA GeForce GTX 660M NVIDIA GeForce GTX 675M NVIDIA GeForce GTX 680MX NVIDIA GeForce GT 750M NVIDIA GeForce GT 755M NVIDIA GeForce GTX 775M NVIDIA GeForce GTX 780M Intel GMA 900, GMA 950, or GMA X3100 Intel HD Graphics 3000(Sandy Bridge) Intel HD Graphics 4000(Ivy Bridge) Intel HD Graphics 5000(Haswell) Intel Iris 5100(Haswell) Intel Iris Pro 5200(Haswell) Intel HD Graphics 5300(Broadwell) Intel HD Graphics 6000(Broadwell) Intel Iris 6100(Broadwell) Note that any GPU capable of handling Core Image instructions is also Quartz Extreme capable. The requirements for Core Image are greater than those of Quartz Extreme.

Built-in filters

macOS includes many built-in filters, including the following ones. Mac OS X 10.4 introduced over 100 of them, and Mac OS X 10.5 added to the list.

Blurs, like Median, Gaussian, Motion, and Noise Color Adjustments & Effects, like Exposure, Gamma Adjust, and Sepia Tone Composition Operations, like Addition and Multiply Blends, or Hard Light Distortions, like Pinch, Circle Splash, and Vortex Generators, like Star Shine and Lenticular Halo Geometry Adjustments, such as Crop, Scale, Rotate, and Affine transformation Halftone, Tile, and Posterize filters Transitions, such as Dissolve and Ripple

See also Acorn (software) Aperture Core Image Fun House GEGL, a programming library used by GIMP impromptu LiveQuartz Pixelmator Quartz Composer Windows Imaging Component, a Windows component with similar API design but with fewer supported image operations.

References

Bibliography Singh, Amit (June 19, 2006). Mac OS X Internals: A Systems Approach. Addison-Wesley Professional. ISBN 978-0-13-270226-3.

… excerpt ends here. Continue reading the full article.

Illustrations

Core Image: Wikipedia Logo with "Color Monochrome", "Parallelogram Tile", and "Pinch Distortion" Image Units applied
Wikipedia Logo with "Color Monochrome", "Parallelogram Tile", and "Pinch Distortion" Image Units applied

Worked examples

Example 1 — a first encounter with Core Image

Start with the simplest possible case. Write down what Core Image claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Core Image before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Core Image ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Core Image

In research
Core Image appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Core Image in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Core Image is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graphics libraries, MacOS APIs, so understanding it makes those chapters shorter.
In everyday life
Look for Core Image outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Core Image” →

How to study Core Image in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Core Image means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Core Image out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Core Image in simple terms?

Core Image is a pixel-accurate, near-realtime, non-destructive image processing technology in Mac OS X. Implemented as part of the QuartzCore framework of Mac OS X 10.4 and later, Core Image provides a plugin-based architecture for applying filters and effects within the Quartz graphics rendering l…

Why does Core Image matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Core Image?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Core Image.

Tags

  • Graphics libraries
  • MacOS APIs

Keep exploring