Guided Filter

Standard

Testing Guided Filter (actually testing Jupyter notebook)

https://github.com/subokita/guided_filter/tree/master

Depends on numpy, scipy, matplotlib, and jupyter

The good part is that now I can somehow annotate my code with the original equations (well, when I don’t butcher it). Still, probably the best IDE is when you write math equation using latex, or so, and it will automatically generate backend python / c++ code  for it.

Screen Shot 2017-08-14 at 19.02.50

 

Depth Map mesh generation

Standard

SceneKitTest.gif

Depth map (or height map?) mesh generation using SceneKit. This is my first time using SceneKit and it’s way less hassle than writing every single OpenGL operations line by line.

Basically what it does is to generate terrain / height map using given depth map. The calculation of the normal is still messed up though.

You can get the source code here:

https://github.com/subokita/SceneKit-Testhttps://github.com/subokita/SceneKit-Test

Edit:
Updated with:

  1. Testing handwriting custom fragment shader (well, just trying out how to set SceneKit to use my own fragment shader)
  2. Metal compute shader, kernel function is taken from InvasiveCode which is pretty straightforward. The only thing that I wanted to know is the initialisation steps.

Screen Shot 2017-08-07 at 08.58.04.png

Quick and dirty Consul + Registrator + Docker tutorial

Standard

A quick and dirty Consul + Registrator + Docker tutorial.

https://github.com/subokita/consul-docker-test

The example uses docker, consul, registrator and python’s flask framework to quickly create REST services.

The interesting files are the

  • call-server.py: which shows how to use python-consul to obtain available services (other flask REST service) from the consul node
  • And the docker-compose.yml that creates consul server, registrator container, and two REST service containers which are automatically registered using registrator.

Have fun.

 

Standard

In indefinite hiatus, which would probably last a very long time.

I want to focus on my work creating things I believe in.