How to Normalize co-ordinates to [-sqrt2,sqrt2]?
显示 更早的评论
I have got the following code
d = size(img); % dimension
img = double(img);
xstep = 2/(d(1)-1);
ystep = 2/(d(2)-1);
[x,y] = meshgrid(-1:xstep:1,-1:ystep:1);
How does this normalisation actually works? Can any one please help.
1 个评论
dpb
2015-2-13
Well, how about trying a sample case at the command line and see?
BIG HINT: What's the value of [1-(1)'?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 White 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!