if statement in create_training_set_shtech.m
Opened this issue · 1 comments
WUhailing commented
lines 49 -61:
`
wn2 = w/8; hn2 = h/8;
wn2 =8 * floor(wn2/8);
hn2 =8 * floor(hn2/8);
annPoints = image_info{1}.location;
if( w <= 2*wn2 )
im = imresize(im,[ h,2*wn2+1]);
annPoints(:,1) = annPoints(:,1)*2*wn2/w;
end
if( h <= 2*hn2)
im = imresize(im,[2*hn2+1,w]);
annPoints(:,2) = annPoints(:,2)*2*hn2/h;
end
`
why the if condition w <= 2wn2 or h <= 2hn2 is used? since line 49-51 says w >= 8*wn2. I am quite confused here.
winnielbx commented
and annPoints_sampled, what is this? I deleted them......