Code Monkey home page Code Monkey logo

modified-structure-function-algorithm-matlab's Introduction

Linkedin Badge Telegram Badge

Modified Structure Function (MSF) algorithm

Where MSF is used?

Dynamic speckle imaging (DSI) enables visualization of speed distribution for processes that occur in a controlled object and lead to micro-changes of its relief. Method is used in such fields as non-destructive testing, estimation of blood flow, measurement of bacterial response, observation of processes in plants, food quality assessment, drying of paints, fire detection and etc.

Images that show activity distribution within controlled object are called activity maps. Below are shown some examples.

Blod flow estimation Non-destructive testing Paint drying estimation
example example example

How to calculate activity maps?

Before obtaining activity maps, we have to capture speckle images. Setup for capturing images is shown below. It consists of vibration-isolated table, laser, laser expander and camera, connected to PC or laptop.

example

Speckle image may look like this, for instance

example

There are many algorithms to calculate activity maps, for instance, Laser Speckle Contrast Analysis (LACSA), Generalized Differences (GD), Fuji Algorithm and etc. In this code Modified Stucture Function algorithm is implemented as it is faster, more sensitive and calculated maps have better spatial resolution, comparing to other methods. Idea is to analize N correlated in time speckle images, consecutively captured with constant time interval.

example

To calculate final value of one pixel with i, j coordinates, we use Normalized Modified Structure Function equation.

Normalized Modified Structure Function $$\ S(i,j,m) = \frac{1}{N-1}\sum_{n=1}^{N-m}\frac{ \left|I_{ij,n} - I_{ij,n+m} \right|}{I_{ij,n} + I_{ij,n+m}} $$

Choice of m value affects the quality and sensitivity of the activity map to changes taking place in the observed object. Usually the value varies from 1 to 10.

You can download .zip file containing 20 images to see how this algorithm works and play with choice of m step. Also enter size of set equal to 20 in the input window.

modified-structure-function-algorithm-matlab's People

Contributors

f1refr0st 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.