2018-02-18から1日間の記事一覧

Interface2017年05月号新画像処理101を読む

アファイン変換で平行移動して、画像サイズを大きくした場合 #http://imagingsolution.blog107.fc2.com/blog-entry-284.html import math as m img_src = cv2.imread("data/img_4-2.bmp") eight,width,ch = img_src.shape """ warpAffine 画像のアフィン変換…

Interface2017年05月号新画像処理101を読む

アファイン変換で平行移動した場合 #http://imagingsolution.blog107.fc2.com/blog-entry-284.html import math as m img_src = cv2.imread("data/img_4-2.bmp") eight,width,ch = img_src.shape """ warpAffine 画像のアフィン変換を行います. パラメタ: s…

Interface2017年05月号新画像処理101を読む

4-2 ひずみ補正等に使える並行四辺形変換「スキュー変換(水平)」 アファイン変換で平行移動していない場合 #http://imagingsolution.blog107.fc2.com/blog-entry-284.html import math as m img_src = cv2.imread("data/img_4-2.bmp") eight,width,ch = im…

Interface2017年05月号新画像処理101を読む

技4 変形/移動 処理 4-1 画像を変形したいとき使う回転変形 img_src = cv2.imread("data/img_4-1.bmp") eight,width,ch = img_src.shape """ getRotationMatrix2D 回転変換行列の算出 パラメタ: center – 入力画像中にある回転中心 angle – 度単位で表される…