2010-02-12から1日間の記事一覧

matlab octave rgb2hsv compatibility

rgb2hsv2.m function hsval = rgb2hsv2(rgb) if (nargin != 1) print_usage (); endif ## If we have an image convert it into a color map. if (ismatrix (rgb) && ndims (rgb) == 3) is_image = true; Sz = size (rgb); rgb = [rgb(:,:,1)(:), rgb(:,:,2)…

matlab octave ベクトルを行列に reshape

Sz = size (rgb); ... hsval = [h, s, v]; ## If input was an image, convert it back into one. if (is_image) hsval = reshape (hsval, Sz); endif

matlab octave 行列をベクトルに

octave:14> a=[1,2;3,4] a = 1 2 3 4 octave:15> a(:) ans = 1 3 2 4

χ二乗距離 カイ二乗距離 chi square kernel (distance)

意外と見つからないのでメモ。 x^2 statistic measuresの部分でいいのでは(英語)? http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/SHAHROKNI1/node8.html 具体例ならこちら(日本語)。 http://miku.motion.ne.jp/stories/11_TFkai.htmlmatlab…