Showing posts with label Mathematics. Show all posts
Showing posts with label Mathematics. Show all posts

Friday, September 01, 2023

Frequence space ( Source codes )


References:

[1] Elliptic Harmonics http://www.cs.utah.edu/~jfishbau/advimproc/project3/



Resources:
 0) Discrete Fourier Transform 1D, source code c/c++/java/python and more https://www.nayuki.io/page/how-to-implement-the-discrete-fourier-transform
1) Discret Sine Tranform  https://people.sc.fsu.edu/~jburkardt/cpp_src/sine_transform/sine_transform.html
  1.1) Python version http://www-personal.umich.edu/~mejn/computational-physics/dcst.py

2) Haar Wavelet compression https://people.math.osu.edu/husen.1/teaching/wi2010/572/572.html

3) Fast Fourier Tranform 1d/2d http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html
4) Elliptic Fourier Transform source code python https://github.com/hbldh/pyefd
5) Spatial Elliptical Fourier Descriptors python https://spatial-efd.readthedocs.io/en/latest/raster_link.html 


6) Morphometric in R https://github.com/MomX/Momocs/

Thursday, September 26, 2019

PCA/WPCA

Video Lectures
[1] SVD to PCA https://www.youtube.com/watch?v=mBcLRGuAFUk

Lectures
[1] https://skymind.ai/wiki/eigenvector
[2] https://www.projectrhea.org/rhea/index.php/PCA_Theory_Examples


[3] PCA Theory Example http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf

[4] Animation 2D PCA https://www.intmath.com/matrices-determinants/eigenvalues-eigenvectors-concept-applet.php


[5] PCA on OpenCV
https://robospace.wordpress.com/2013/10/09/object-orientation-principal-component-analysis-opencv/


[6] Wavelets, Fourier, Kalman http://www.cs.otago.ac.nz/cosc453/





Resources:
[1] https://machinelearningmastery.com/calculate-principal-component-analysis-scratch-python/
[2] https://jakevdp.github.io/PythonDataScienceHandbook/05.09-principal-component-analysis.html
[3] Draw 2D principal axis PCA https://stackoverflow.com/questions/18299523/basic-example-for-pca-with-matplotlib

Saturday, August 03, 2019

Latex tools


Resources:
[1] Mathpix https://snapcraft.io/mathpix-snipping-tool
                    https://snapcraft.io/install/mathpix-snipping-tool/ubuntu
[2]

Monday, July 01, 2019

OpenVDB Installation

OpenVDB Codes
[0] OpenVDB Code Examples https://www.openvdb.org/documentation/doxygen/codeExamples.html

[1] pyopenvdb volume codes https://www.openvdb.org/documentation/doxygen/python.html

[3] https://python.hotexamples.com/examples/pyopenvdb/-/createLinearTransform/python-createlineartransform-function-examples.html

More:
[1] Light, Sound modeling http://gamma.web.unc.edu/software/
[2] OpenVDB Slices to VDB https://github.com/tody411/OpenVDB-Samples
 

Resources:

[0] OpenVDB https://github.com/AcademySoftwareFoundation/openvdb

For Enable pyOpenVDB (main CMakeLists.txt)

option(OPENVDB_BUILD_PYTHON_MODULE "Build the pyopenvdb Python module" ON)
 

For Enable Viewer

cmd/CMakeLists.txt
option(OPENVDB_BUILD_VDB_VIEW "Build vdb_view" ON)
#Others
option(OPENVDB_BUILD_VDB_PRINT "Build vdb_print" ON)
option(OPENVDB_BUILD_VDB_LOD "Build vdb_lod" ON)
option(OPENVDB_BUILD_VDB_RENDER "Build vdb_render" ON)
 
OpenVDBGLFW3Setup.cmake:130

set(_GLFW3_ROOT_SEARCH_DIR "") 
set(_GLFW3_ROOT_SEARCH_DIR "/usr/lib/x86_64-linux-gnu") 

For Enable Polygonization(grid.convertToPolygons) in python module, change  openvdb/openvdb/python/CMakeLists.txt

option(USE_NUMPY "Build the python library with numpy support." ON)

or you will get next error

NotImplementedError: this module was built without NumPy support




Dependences: 

[1] OpenExr https://github.com/AcademySoftwareFoundation/openexr

[2] Intel(R) Threading Building Blocks https://github.com/wjakob/tbb

Minimum required is "2017.0" for both above.
 

[3] Boost https://sourceforge.net/projects/boost/files/boost/

$./bootstrap.sh --prefix=/usr/

$./b2

$sudo ./b2 install

#Preference to Boost 1.7 with python3 support, it enable cmds tools

https://melhorum.blogspot.com/2020/10/boost-17-on-ubuntu16.html

Or Compile Viewer Manually on openvdb/openvdb/openvdb/cmd


Ubuntu16

$g++-6 openvdb_view.cc ../viewer/Camera.cc ../viewer/ClipBox.cc ../viewer/Font.cc ../viewer/RenderMo
dules.cc ../viewer/Viewer.cc -lopenvdb -ltbb -lglfw -lGL -lGLU -lHalf -lpthread -DGL_GLEXT_PROTOTYPES

Ubuntu18

g++ openvdb_view.cc ../viewer/Camera.cc ../viewer/ClipBox.cc ../viewer/Font.cc ../viewer/RenderModules.cc ../viewer/Viewer.cc -lopenvdb -ltbb -lglfw -DGL_GLEXT_PROTOTYPES -DOPENVDB_USE_GLFW_3 -I ../viewer/ -lHalf -lpthread -o openvdb_view -lboost_thread -lboost_system -lGL -lGLU 



Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com