Some tinkering/hacking I did over the break. I saw this cool Adafruit 9-DOF absolute orientation breakout board and decided to test it. The demo from Adafruit shows use with Arduino and browser based visualisation and model rotation. I decided to use the Arduino serial port to interface the sensor with my Julia codes for 3D visualisation. This video shows the result of some code I quickly hacked together.

So, besides gaining weight over the holidays, I gained a new super power: I can use Julia to talk to devices now!

Detailed description and code available here: https://github.com/Kevin-Mattheus-Moerman/Julia_Arduino_projects

#Julialang #opensource #Arduino #Adafruit #makie

Meet Taubin smoothing. It is a nice smoothing method that is great for smoothing voxel based meshes. So for smoothing stepped "Lego-like" meshes.

The left here shows a raw voxelised (thresholded) voxel boundary surface. On the right is the Taubin smoothed result.

Taubin smoothing works by first doing an aggressive Laplacian smoothing step (a bit like a blurring), which removes bumps etc, but which unfortunately can distort the shape too (e.g. unwanted shrinkage/growth). Next it uses an "inverse smooth" (a bit like a sharpening operation) to attempt to push back the shape a bit to avoid distortion. With the right parameter choices it can perform really well.

This animation is for a thresholded 3D image. The colors are the original voxel intensities. The resulting shape presents as a central sphere like blob contained in a dodecahedron "cage".

See also: https://doi.org/10.1145/218380.218473

#GeometryProcessing #JuliaLang #Makie #Meshing #TilingTuesday

Stress tested my #opensource medical image segmentation tool using the Visual Human Female CT data-set. 1727 slices featuring a total of 778.721.570 pixels.

Oh my! #Julialang is fast!

Join the development:
https://github.com/COMODO-research/Imago.jl

Made possible using the superpowers of the #Makie visualisation library!

Testing out "Natural Neighbour" interpolation of non-gridded/scattered 3D data. If only there was a fun boundary curve with some sharp features that I could use to test these methods.

https://en.wikipedia.org/wiki/Natural-neighbor_interpolation

See the nice package by Daniel VandenHeuvel: https://github.com/DanielVandH/NaturalNeighbours.jl

#opensource #julialang #Makie #Comodo #geometryprocessing

I'm new to #Pluto (started it yesterday!) but the next step is to make the Pluto notebook interactive and to have the #Makie plots update with sliders manipulating material constants... some other day though...

Whoopsy

(setting the levelset value too low for a Gyroid shell reconstruction leads to a crummy mess)

#geometryprocessing #JuliaLang #Makie

And, yep it works for the Batman curve too. Always an important test.

The left image shows interior triangulation and right image shows exterior triangulation. In both cases the algorithm computes angles on the input boundary segments (blue curve) and creates triangles where the angle is smallest and below a threshold. Next the boundary is updated to include the new line segment introduced by the new triangle, and the point "skipped" by adding this triangle is removed from the boundary list. The process continues until there are no more triangles to add. Here I set the threshold to 180 degrees so you get a fully triangulated state.

#opensource #geometryprocessing #JuliaLang #Makie #Comodo

Building a simple medical image segmentation tool in #JuliaLang.

So far the method only creates raw contours. Next I need to add contour cutting, merging, spline based smoothing, growing/shrinking, manual drawing, etc. and before you know it we have a high performance and #opensource tool for medical image segmentation!

#ImageSegmentation #ImageProcessing #Biomechanics #Makie

I recently posted a demo how to combine plots in Julia with typst (latex is also possible). I now wrote a blogpost on it:

https://benediktehinger.de/blog/science/plot-matrices-formulas-in-julia-with-typst-or-latex/

#makie @makieorg #typst #visualization #plotting #latex #julialang

Plot Matrices, Formulas in Julia with Typst (or latex) - Science

Makie really amazes me with the quality of plots produced out of the box. With some minor tweaking you can generate art with it.

Adapted from https://beautiful.makie.org/dev/examples/2d/streamplot/complex_polya_field

#Makie #julialang #proceduralgeometry #plotting #dataviz

Beautiful Makie

A gallery collection