Ағылшыншамен салыстырыңыз: абзацты басыңыз — түпнұсқа терезеде ашылады. Абзац астындағы EN түймесі оны мәтін ішінде көрсетеді.
Мазмұны
Кіріспе
Mac OS X 10.4-те пайда болған бейне өңдеу технологиясы
Image processing technology introduced in Mac OS X 10.4
Core Image – Mac OS X жүйесіндегі пикселдік дәлдікте, дерлік нақты уақыт режимінде жұмыс істейтін, бейнені бұзбастан өңдейтін технология. Mac OS X 10.4 және одан кейінгі нұсқаларының QuartzCore фреймворкінің құрамында жүзеге асырылған Core Image, Quartz графикалық рендеринг қабатында сүзгілер мен эффекттерді қолдану үшін плагинге негізделген архитектураны ұсынады. Бұл фреймворк кейіннен iOS 5-те iOS жүйесіне де қосылды.
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.
Шолу
Core Image суретке сүзгі қолданғанда қажет болатын пиксельдік деңгейдегі манипуляция процесін абстракциялайды, бұл қосымшаларға суретті түрлендіру мүмкіндіктерін кеңейтілген кодтаусыз іске асыруды жеңілдетеді. Қарапайым іске асыруда Core Image берілген бастапқы сурет деректеріне бір сурет сүзгісін қолданады. Әрбір сурет сүзгісі бір түрлендіруді немесе эффектіні анықтайды, ол Core Image құрамына енгізілген немесе Image Unit деп аталатын плагиннен жүктеледі. Алдын ала орнатылған немесе пайдаланушы анықтаған кіріс параметрлерімен біріктірілген сүзгі бастапқы пиксель деректерін өзгертпей-ақ қолданылуы мүмкін, осылайша суретті бұзбай өңдеуді қамтамасыз етеді. Photoshop сияқты, Core Image бір сурет көзіне бірнеше сүзгілерді қолдана алады. Көптеген сүзгілерді жеке-жеке қолданудың орнына, Core Image динамикалық нұсқаулар құбырын құрастырады, сондықтан пиксель деректеріне жиынтық эффектіні алу үшін тек бір есептеуді қолдану жеткілікті. Көптеген сүзгілерге байланысты пиксельдік операцияларды бір мезгілде және өңдеу уақытын едәуір арттырмай орындауға болады. Сүзгілер санына қарамастан, Core Image осы нұсқау құбыры үшін кодты уақытында компилятормен құрастырады, оны CPU немесе графикалық картаның GPU орындайды, қайсысы есептеуді жылдам орындай алады. Сүзгілер Core Image Kernel Language тілінде жазылған, ол OpenGL Shading Language (GLSL) командаларының бір бөлігін бөліседі. Үйлесімді GPU болған жағдайда, Core Image компиляторы GLSL тілін пайдаланып, буферлер мен күйлерді автоматты түрде басқара отырып, нұсқау құбырын жасайды. GPU рендерингісіне басымдық берілсе де, компилятор CPU-да жұмыс істей алады, ағымдағы CPU архитектурасына сәйкес командаларды жасайды. CPU-да жұмыс істеу кезінде, ағымдағы CPU немесе CPU-лардың векторлық өңдеу мүмкіндіктері пайдаланылады және ол көппроцессорлық жүйелерді қолдайды. Осылайша, Core Image өнімділігі GPU-ның GLSL мүмкіндіктеріне немесе CPU-ның өңдеу қуатына байланысты. Қолдау көрсетілетін GPU болған жағдайда, көптеген эффектілерді нақты уақытта немесе дерлік нақты уақытта көрсетуге болады.
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.
Тарих және жүзеге асыру
Core Image Mac OS X 10.4 жүйесімен енгізілді. Оның қолданылу мысалдары Dashboard-тағы толқын эффектісінде және Apple-дің Aperture кәсіби цифрлық фотосурет қолданбасында кездеседі. Mac OS X 10.5 нұсқасынан бастап, Image Kit-ті қолдайтын кез келген қолданба Core Image-ті пайдалана алады. Алдын ала қарау (Preview) және iPhoto осыған орай кең таралған мысалдар. 2011 жылы Apple iOS 5.0 нұсқасында Core Image-ді iOS жүйесіне қосты.
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.