summaryrefslogtreecommitdiff
path: root/macros/getrectsubpix.sci
blob: 792be366ffe38adb5a51ab755a6e3057323a51f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function new_image = getrectsubpix(image, alpha, beta, centerX, centerY, patchType)
	
	image_list = mattolist(image)
	
	out = opencv_getrectsubpix(image_list, alpha, beta, centerX, centerY, patchType)
	
	sz = size(out)
	
	for i = 1 : sz
		new_image(:, :, i) = out(i)
	end
	
endfunction