Skip to content

Instantly share code, notes, and snippets.

@gfacciol
gfacciol / alphaabbr.bst
Created September 21, 2023 09:21
Bibtex styles: alpha + abbrv = alphaabbr
% BibTeX `plain' family
% version 0.99b for BibTeX versions 0.99a or later, LaTeX version 2.09.
% Copyright (C) 1985, all rights reserved.
% Copying of this file is authorized only if either
% (1) you make absolutely no changes to your copy, including name, or
% (2) if you do make changes, you name it something other than
% btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
% This restriction helps ensure that all standard styles are identical.
@gfacciol
gfacciol / tikz-to-png.lua
Last active May 15, 2022 15:54
PanDoc filter to extract images from LaTeX with TikZ
-- From: How to use PanDoc to derive output from LaTeX and TikZ to a DOCX file?
-- https://tex.stackexchange.com/questions/431719/how-to-use-pandoc-to-derive-output-from-latex-and-tikz-to-a-docx-file
-- see https://linuxtoosx.blogspot.com/2021/10/pandoc-quite-good-conversion-from-latex.html
local function tikz2image(src, outfile)
local tmp = os.tmpname()
local tmpdir = string.match(tmp, "^(.*[\\/])") or "."
local f = io.open(tmp .. ".tex", 'w')
f:write("\\documentclass{standalone}\n")
-- include all packages needed to compile your images
@gfacciol
gfacciol / HAdemosaic.py
Last active April 30, 2021 10:55
Pytorch implementation of Hamilton-Adams demosaicing
# Pytorch implementation of Hamilton-Adams demosaicing
# J. Hamilton Jr. and J. Adams Jr. Adaptive color plan interpolation
# in single sensor color electronic camera, 1997, US Patent 5,629,734.
#
# Copyright (c) 2021 Gabriele Facciolo
# based on code by Yu Guo and Qiyu Jin
import numpy as np
import torch
"""
* tools for displaying images in the notebook
Copyright (C) 2017-2018, Gabriele Facciolo <facciolo@cmla.ens-cachan.fr>
"""
from __future__ import print_function
### DISPLAY IMAGES AND TABLES IN THE NOTEBOOK
@gfacciol
gfacciol / Dockerfile
Created August 25, 2020 11:53
Dockerfile for building AMES StereoPipeline from source: github.com/NeoGeographyToolkit/StereoPipeline
FROM continuumio/miniconda3
RUN apt-get update && apt-get install -y software-properties-common
RUN apt-get install libgl1-mesa-glx vim -y
# dowload ASP with conda dependencies
ENV buildDir $HOME/build_asp
RUN mkdir -p $buildDir
RUN cd $buildDir && \
git clone https://github.com/NeoGeographyToolkit/StereoPipeline.git
@gfacciol
gfacciol / appmode-notebook.ipynb
Last active November 15, 2020 15:19
appmode jupyter notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gfacciol
gfacciol / potree_FLIP_point_clouds.html
Last active November 7, 2017 11:15
Code for adding a button to FLIP between potree point clouds as in: http://gfacciol.github.io/multi-date-stereo/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Potree Viewer</title>
<link rel="stylesheet" type="text/css" href="libs/potree/potree.css">