GithubHelp home page GithubHelp logo

david-brinkmeier / beamfit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16.01 MB

On/Offline MATLAB tool for fitting laser beams.

License: GNU General Public License v3.0

MATLAB 100.00%
image-processing laser ueye

beamfit's Introduction

Beamfit

Offline and Online analysis for laser beams

  • Least square elliptical rotated Gaussian fit (D4σ specification), cf. docs.

  • Least square trepanning (rotating on a circular path) symmetrical Gaussian fit (D4σ specification).

  • Second-order moments / ISO11146 beam width for elliptic beams (D4σ specification).

    • Based on this implementation by Raphaël Candelier with minor adjustments to fit the ISO11146 spec.
  • Offline analysis supports image and video processing

    • Examples and results for usage with example_general_purpose.m are provided in the examples.
    • example_synthetic.m allows for generation and analysis of noisy rotated offset elliptical Gaussians as well as noisy trepanning offset symmetrical Gaussians for testing purposes.
  • Online analysis supports IDS uEye cameras through uEyeDotNet.dll

    • example_online_ueye.m allows for online usage with uEye cameras. Make sure that the location of the uEyeDotNet.dll in the header is correct.
    • Specification of uEye cameras (Pixel pitch etc.) are auto-detected. Check out the uEye example to see what it looks like with a beam incident on a diffuser and reimaged onto the sensor, which required heavy post-processing to get a useful online reading for the center of gravity due to speckles.
    • Minor bugfixes were applied to the uEye-dotnet Matlab library from Dr. Adam Wyatt.

Image processing

  • Built-in functionality includes various DC-offset removal / noise removal techniques including noisecomp from Peter Kovesi and TV-L1 denoising from Manolis Lourakis.
  • Automated and/or GUI-cropping / pre-scaling of input for faster fitting etc.
  • Why image cleanup? Second-order moment determination of beam diameter/radius is particularly prone to measurement noise.
    • Warning: Due to the definition of beam diameter through the second order moments this means it's also possible to effectively falsify the ISO11146 measurement through usage of excessive denoising.
  • Additionally / alternatively an offset background image which is subtracted from the input may be provided.

Features

  • Horrible mess of procedural code, held in place by duct-tape. If I were to do it today, I would do it properly and most likely in Python.
  • That being said, the code works and has proven to be useful in practice. Especially when compared to many proprietary / expensive beam measurement software/hardware bundles.
  • Usage is intended with Camera sensors WITHOUT lens. If you have an imaging system, you need to take the specification of your imaging setup into account. If this means nothing to you, a commercial system may be better suited for your purposes.

Disclaimer

  • As stated in the license...code provided "as is". If you need certified measurements, use certified measurement hardware and software!

beamfit's People

Contributors

david-brinkmeier 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.