- PCLをGitからクローンする。(C:\PCL-1.7.2)
https://github.com/PointCloudLibrary/pcl/tree/pcl-1.7.2
| # imports | |
| import numpy as np | |
| import cv2 | |
| import matplotlib.pyplot as plt | |
| # The Hough Transform is a popular algorithm for detecting any shape that can | |
| # be represented in a parametric mathmatical form in binary images. This | |
| # usually means that images need to be thresholded or filtered prior to running |
| import math | |
| import Image | |
| import Levenshtein | |
| class BWImageCompare(object): | |
| """Compares two images (b/w).""" | |
| _pixel = 255 |
| #!/usr/bin/env python | |
| # Implementation of algorithm from http://stackoverflow.com/a/22640362/6029703 | |
| import numpy as np | |
| import pylab | |
| def thresholding_algo(y, lag, threshold, influence): | |
| signals = np.zeros(len(y)) | |
| filteredY = np.array(y) | |
| avgFilter = [0]*len(y) | |
| stdFilter = [0]*len(y) |
| XenomaiVersion=3.0.5 | |
| KernelVersion=4.9.y | |
| PLATFORM=arm | |
| git clone https://github.com/raspberrypi/linux.git -b rpi-${KernelVersion} --depth 1 | |
| wget http://xenomai.org/downloads/xenomai/stable/xenomai-${XenomaiVersion}.tar.bz2 | |
| wget http://xenomai.org/downloads/ipipe/v4.x/arm/ipipe-core-4.4.43-arm-8.patch | |
| wget http://busybox.net/downloads/busybox-1.26.2.tar.bz2 |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <ImportGroup Label="PropertySheets" /> | |
| <PropertyGroup Label="UserMacros"> | |
| <OPENCV_INSTALL_DIR>C:\dev\opencv-2.4.9\build\install</OPENCV_INSTALL_DIR> | |
| </PropertyGroup> | |
| <!-- Debug|Win32 --> | |
| <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
| </PropertyGroup> | |
| <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
- VTK 5.10.1(VTK-5.10.1.zip)をダウンロードしてファイルを解凍する。(C:\VTK-5.10.1)
http://www.vtk.org/VTK/resources/software.html#previous
https://github.com/Kitware/VTK/tree/v5.10.1
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
| #!/usr/bin/env bash | |
| # This is an installation tutorial of the OROCOS v2.8 with the ROS Indigo and | |
| # the Xenomai 2.6.4 on Ubuntu 14.04. | |
| # The following is adapted from: | |
| # https://help.ubuntu.com/community/Kernel/Compile#Alternate_Build_Method:_The_Old-Fashioned_Debian_Way | |
| # http://www.xenomai.org/documentation/xenomai-2.6/README.INSTALL | |
| # Update kernel | |
| sudo apt-get install linux-image-generic-lts-trusty |
Testing qemu 2.1 arm64 support
qemu-system-aarch64 -m 1024 -cpu cortex-a57 -nographic -machine virt -kernel trusty-server-cloudimg-arm64-vmlinuz-generic -append 'root=/dev/vda1 rw rootwait mem=1024M console=ttyAMA0,38400n8 init=/usr/lib/cloud-init/uncloud-init ds=nocloud ubuntu-pass=ubuntu' -drive if=none,id=image,file=trusty-server-cloudimg-arm64-disk1.img -netdev user,id=user0 -device virtio-net-device,netdev=user0 -device virtio-blk-device,drive=image
qemu-system-aarch64 -m 1024 -cpu cortex-a57 -nographic -machine virt -kernel trusty-server-cloudimg-arm64-vmlinuz-generic -append 'root=/dev/vda1 rw rootwait mem=1024M console=ttyAMA0,38400n8 init=/usr/lib/cloud-init/uncloud-init ds=nocloud' -drive if=none,id=image,file=trusty-server-cloudimg-arm64-disk1.img -netdev user,id=user0 -device virtio-net-device,netdev=user0 -device virtio-blk-device,drive=image
[A Quick'n'Dirty Set-up of an Aarch64 Ubuntu 14.04 VM with QEMU]