This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solvePnP gives the object coordinates in respect to the camera coordinates. | |
To get the camera coordinates with respect to object coordinates, you have to invert the solvePnP output. | |
There is a trick to invert transformation matrices that allows you to save the inversion operation, | |
which is usually expensive. Given a transformation [R|t], we have that inv([R|t]) = [R'|-R'*t], | |
where R' is the transpose of R. | |
So the C++ code would be like: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install docker.io | |
%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Run with ubuntu:16:04 | |
docker run --rm -ti ubuntu:16.04 /bin/bash | |
%%%%%%%%%%%%%%%%%%%%%%%%% | |
% commit changes | |
sudo su |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -avzPn --delete 20161202-1* diego@diego-bir:/home/diego/logs_catarina | |
Usefull | |
-n, --dry-run perform a trial run with no changes made | |
-v, --verbose increase verbosity | |
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) | |
-z, --compress compress file data during the transfer | |
-P same as --partial --progress | |
--partial keep partially transferred files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Set color labels to group | |
Script to provide shortcuts for setting color labels in images groups. | |
Useful for those who are RAW+JPEG shooters. | |
Installation and usage: | |
1. Copy this file into ~/.config/darktable/lua/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# OPTIONS number of group bracket shot and verbose | |
set -e | |
INPUT_DIR="$@" | |
if [ "$#" -ne 1 ]; then | |
echo "Wrong usage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INPUT_DIR="$@" | |
if [ "$#" -ne 1 ]; then | |
echo "Wrong usage" | |
echo "Usage: move_bracket_shots_and_generate_tiff.sh <INPUT_DIR>" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##!/bin/bash | |
set -e | |
for D in * | |
do | |
if [ -d "$D" ] | |
then | |
cd $D | |
for f in *.JPG | |
do |