影象效果演算法設計(一)

才智咖 人氣:1.71W

隨著電影特效處理,廣告平面設計等行業的興起,影象處理軟體成為眾行業一個不可或缺的角色。為了進一步瞭解該行業軟體的特性,實現思想和方法,故製作了這個以影象演算法設計為主的軟體。
 本軟體參考了adobe公司的photoshop的部分影象處理功能,在編寫效果程式碼時主要運用了矩陣運算,還有求平均值,求差值等方法。這個軟體是針對pf24bit的點陣圖,利用其每個畫素點都包含3個位元組的原理,對其3個位元組進行數學運算來實現影象演算法。另外適當添加了一些看圖輔助功能,並結合delphi的BussinessSkinForm控制元件大大美化了介面。
 本文主要介紹了在delphi中,利用各種不同的演算法來實現建立在點陣圖上的不同效果,其中主要介紹的有曝光、浮雕、馬賽克、模糊、銳化、新增雜色、噴濺、霓虹、90度旋轉、水平翻轉、垂直翻轉。另外還做了當步撤銷和影象的縮放,還有簡單的jpg,bmp的格式轉換。
 
[關鍵詞]:影象處理,演算法設計,BussinessSkinForm

影象效果演算法設計(一)

a numerous professions indispensable role. In order to further understands the characteristic , the realization thought and the method to this kind of profession software,whifhfdhfdgdfch is by the picture algorithm design primarily.
This software has referred to the partial pictures processing function of adobe Corporation's  software which name is photoshop. When compilation effect code, mainly has utilized the mathod of matrix operation,Computation Mean value and different value. This software is aims at pf24bit the position chart, uses its each pixel all to contain 3 bytes the principles, carries on mathematics to its 3 bytes to operate realizes the picture over suitably increased some map-read assistance functions, and unified delphi BussinessSkinForm Controls to greatly beautify the surface.
This article mainly introduced in delphi, uses each different algorithm to realize the establishment to reign on the chart different effect, mainly introduces has the exposure, the relief, the mosaic, is fuzzy varicolored, the peaking, the increase, splatters, the neon, 90 revolves, the level turn over, the vertical turn over. Moreover also did has worked as step of cancellation and picture 縮放, but also had simple jpg, the bmp format conversion.

[Key word]: Picture processing, algorithm design, BussinessSkinForm


 目  錄

第1章   引言………………………………………………………………………4
 1.1 課題背景……………………………………………………………………4
 1.2 研究課題的任務、目的和意義……………………………………………4
 1.3 系統的主要功能與特色……………………………………………………5
第2章   系統需求分析………………………………………………………….…7
 2.1 本課題研究現狀分析………………………………………………………7
 2.2 要解決的技術難點及解決方法……………………………………………7
 2.3 系統設計的主要內容、目標………………………………………………8
 2.4 系統開發的環境和工具……………………………………………………9
第3章   系統詳細設計與主要演算法………………………………………………10
 3.1 系統的體系結構和功能設計……………………………………………...10
 3.2 系統各個模組的設計思路及實現方法…………………………………...12
 3.2.1 主窗體程式模組……………………………………………………. 12
 3.2.2 影象處理模組………………………………………………………..15
 3.2.3 效果引數程式模組…………………………………………………..19
 3.2.4 幫助模組……………………………………………………………..20
第4章   系統的介面與測試………………………………………….……………22
 4.1 系統介面………………………………………………………………… 22
 4.2 環境測試………………………………………………………………… 23
結束語………………………………………………………25
致謝…………………………………………………………25
參考文獻……………………………………………………26
引言
§1.1課題背景
 市場上的影象處理軟體大都功能強大,需要好一陣子適應,普通的使用者根本用不到那麼多的功能。所以,可以開發一種簡單小巧,可進行基本影象處理,主要針對數碼照片進行處理及瀏覽的軟體。
 影象處理用到的演算法多種多樣,單是邊緣檢測包括梯度運算元,方向運算元,二階運算元。然後每種運算元又可再細分,如梯度運算元還包括Roberts, Sobel, Prewit三種。另外模糊,銳化等也都有相應的多種演算法,這點在大型的影象處理軟體中尤為多見。採用不同的演算法對最終實現的效果有很大的影響,一般情況下,採用越是複雜的矩陣越是能達到理想的