Skip to content

Instantly share code, notes, and snippets.

View rysk-t's full-sized avatar

Ryosuke Takeuchi rysk-t

  • Nagoya Univ.
  • Japan
View GitHub Profile
@coporlock
coporlock / bilateralfilter.py
Created September 5, 2012 14:43
pythonでopencvの練習(バイラテラルフィルタでブロックノイズ除去)
# coding: UTF-8
import sys
import os
import cv2
param = sys.argv
if (len(param) < 2):
print 'require an argument of file path.'
quit()
@ikegami-yukino
ikegami-yukino / train.patch
Last active February 5, 2018 16:20
LIBLINEAR1.93のcross validationオプションでprecision/recallを出力する
--- train.c 2012-10-29 01:46:32.000000000 +0900
+++ train-new.c 2013-02-12 19:53:21.000000000 +0900
@@ -135,10 +135,14 @@
void do_cross_validation()
{
int i;
- int total_correct = 0;
double total_error = 0;
double sumv = 0, sumy = 0, sumvv = 0, sumyy = 0, sumvy = 0;
double *target = Malloc(double, prob.l);