Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why resizing with a minus 127.5 and multiply 0.0078125 #24

Open
flankechen opened this issue Sep 27, 2017 · 2 comments
Open

why resizing with a minus 127.5 and multiply 0.0078125 #24

flankechen opened this issue Sep 27, 2017 · 2 comments

Comments

@flankechen
Copy link

in the detect_face.m line 34:
im_data=(imResample(img,[hs ws],'bilinear')-127.5)*0.0078125;

how to understand this magic number?

@ilyanelken
Copy link

ilyanelken commented Oct 2, 2017

@flankechen 0.0078125 = 1 / 128

@lx-onism
Copy link

in the detect_face.m line 34:
im_data=(imResample(img,[hs ws],'bilinear')-127.5)*0.0078125;

how to understand this magic number?

hello, my matlab meet an errot while excute the above code: Undefined function or variable 'imResample'. I don't know why and can not get answer by searching on the net.Could you help me? thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants