Giter Site home page Giter Site logo

imageprocess's Introduction

NCHU Advanced Image Processing

影像處理轉換

灰階

gray=(0.299 * red + 0.587 * green + 0.114 * blue)

負片

255 - 原像素值

Gamma 值(大於、等於、小於) 1

[(p(i,j)-min/max-min)^gamma]*255
p(i,j)為像素點之值,min為圖片中像素之最小值,max為圖片中像素之最大值

胡椒鹽雜訊 Salt and pepper

呈現方式是整個影像任意散布黑色或白色

3x3 平均濾波器

先找一個點為中心,把3*3的範圍加總起來做平均寫入覆蓋原本的值。

3x3 中值濾波器

假設圖檔裡面有一組矩陣內容如下,
6  2  0
3  97 4
19 3  10
我們以97為中心點找出3*3的範圍所有的數字,
利用兩個heap 維護中間值,取代原本的97做輸出,這樣的做法則稱為中值濾波器。

LaplacianFilter

laplacMask[k * 3 + z] * gamma2[width * (i + dx[k]) + j + dx[z]]

Sobel 邊緣偵測

公式(soble = sqrt[(x^2+y^2)])

ToOTSU

計算灰階找出前景與背景之間的像素
利用公式 deltaTmp = w0 * w1 * (u1 - u0) * (u1 - u0);
得出二值化分界,並把大於等於 deltaTmp 像素給255,小於給 0

imageprocess's People

Contributors

cvecve147 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.