Skip to content

Instantly share code, notes, and snippets.

Avatar

Dimiter 'malkia' Stanev malkia

View GitHub Profile
@malkia
malkia / pcomp.md
Created Oct 24, 2019 — forked from reinsteam/pcomp.md
Links to materials about perceptual image comparison metric
View pcomp.md

Perceptual Image Differencing

  • [1983. Peter Burt and Edward Adelson. The Laplacian Pyramid as a Compact Image Code][1]
  • [1993. Scott Daly. The visible differences predictor: an algorithm for the assessment of image fidelity][2]
  • [1995. Andrew S. Glassner. In Principles of digital image synthesis, pages 59-66][3]
  • [1997. Gregory Ward-Larson, Holly Rushmeier, and Christine Piatko. A visibility matching tone reproduction operator for high dynamic range scenes][4]
  • [1999. Mahesh Ramasubramanian, Sumant N. Pattnaik, Donald P. Greenberg. A perceptually based physical error metric for realistic image synthesis][5]
  • [2004. Yangli Hector Yee, Anna Newman. A perceptual metric for production Testing][6]
  • [2004. HECTOR YEE, SUMANTA PATTANAIK and DONALD P. GREENBERG. Spatiotemporal Sensitivity and Visual Attention for Efficient Rendering of Dynamic Environments][7]
  • [2004. Hector Yee. *A Perceptual Metric for Production Testing (Submitted and Accepted in Journal of
@malkia
malkia / StringViewTest_WithAdHocStackAllocator
Created Jul 30, 2018
reddit_cpp_speeding_up_string_view_string_split
View StringViewTest_WithAdHocStackAllocator
// https://www.reddit.com/r/cpp/comments/934r63/speeding_up_string_view_string_split/
// StringViewTestss.cpp : performance experiments for string_view
//
#include <string_view>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
@malkia
malkia / jsonnet-perf-tests-runner.sh
Created Jun 24, 2018
jsonnet - no dynamic casts when gc's heap
View jsonnet-perf-tests-runner.sh
../jsonnet-perf-tests.sh 2>&1 | tee ../results.txt
View gist:89c6a78405132bc30dcc
Google Inc.
Copyright 2014 Google Inc. All rights reserved.
Google Chrome 40.0.2214.43 (Official Build) beta
Revision 9d5cd14c677accab1e25f0ee3d58667ff5b41dac
Platform 6457.36.0 (Official Build) beta-channel parrot_ivb
Blink 537.36 (@62f90f76bfca59fa9dd2d73329019b2d841a9b5e)
JavaScript V8 3.30.33.8
Flash 16.0.0.235-r1
User Agent Mozilla/5.0 (X11; CrOS x86_64 6457.36.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.43 Safari/537.36
View gist:ebf7f54063c5aec6d1b0
#define FAST // Comment this out this going 7 times slower
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace netBlah1
{
class Program
{
View gist:9353312
cd /usr/local
tar jxf ~/opencv2.4.8-cygwin64-g++-4.8.2-shared-release-20131231.tar.bz2
cd ~
View gist:9330802
First I've downloaded ode from here:
http://sourceforge.net/projects/opende/files/ODE/0.12/ and extracted it in my e:\p under e:\p\ode-0.12
Then I did (from cmd.exe)
bash --login -i
$ cd /cygdrive/e/p/ode-0.12
$ ./configure
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
View gist:8825584
/* Stolen from luajit - http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/lj_obj.h */
/* Look for examples here - http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/lj_meta.c */
/* ANd http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/src/lj_obj.c */
#define MYDEFS(_) _(one) _(two) _(three) _(four) _(five)
/* Make an enum from 'one', 'two', etc. */
typedef enum my_enums{
#define MYENUM(name) my_##name,
MYDEFS(MYENUM)
View main.cpp
#include <type_traits>
#include <iostream>
#include <cassert>
#include <cstdint>
#include "murmur3_32_constexpr.hpp"
// Add compilers here
#define UNKNOWN -1
#define GCC 0
#define CLANG 1
@malkia
malkia / ProFi.lua
Created Dec 2, 2012 — forked from perky/ProFi.lua
ProFi, a simple lua profiler that works with LuaJIT and prints a pretty report file in columns.
View ProFi.lua
--[[
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php.
Example:
ProFi = require 'ProFi'
ProFi:start()
some_function()
another_function()
coroutine.resume( some_coroutine )
ProFi:stop()