Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9015741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:49:35+00:00 2026-06-16T03:49:35+00:00

In their paper describing Viola-Jones object detection framework (Robust Real-Time Face Detection by Viola

  • 0

In their paper describing Viola-Jones object detection framework (Robust Real-Time Face Detection by Viola and Jones), it is said:

All example sub-windows used for training were variance normalized to minimize the effect of different lighting conditions.

My question is “How to implement image normalization in Octave?”

I’m NOT looking for the specific implementation that Viola & Jones used but a similar one that produces almost the same output. I’ve been following a lot of haar-training tutorials(trying to detect a hand) but not yet able to output a good detector(xml).

I’ve tried contacting the authors, but still no response yet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:49:36+00:00Added an answer on June 16, 2026 at 3:49 am

    I already answered how to to it in general guidelines in this thread.

    Here is how to do method 1 (normalizing to standard normal deviation) in octave (Demonstrating for a random matrix A, of course can be applied to any matrix, which is how the picture is represented):

    >>A = rand(5,5)
    A =
    
       0.078558   0.856690   0.077673   0.038482   0.125593
       0.272183   0.091885   0.495691   0.313981   0.198931
       0.287203   0.779104   0.301254   0.118286   0.252514
       0.508187   0.893055   0.797877   0.668184   0.402121
       0.319055   0.245784   0.324384   0.519099   0.352954
    
    >>s = std(A(:))
    s =  0.25628
    >>u = mean(A(:))
    u =  0.37275
    >>A_norn = (A - u) / s
    A_norn =
    
      -1.147939   1.888350  -1.151395  -1.304320  -0.964411
      -0.392411  -1.095939   0.479722  -0.229316  -0.678241
      -0.333804   1.585607  -0.278976  -0.992922  -0.469159
       0.528481   2.030247   1.658861   1.152795   0.114610
      -0.209517  -0.495419  -0.188723   0.571062  -0.077241
    

    In the above you use:

    • To get the standard deviation of the matrix: s = std(A(:))
    • To get the mean value of the matrix: u = mean(A(:))
    • And then following the formula A'[i][j] = (A[i][j] - u)/s with the
      vectorized version: A_norm = (A - u) / s

    Normalizing it with vector normalization is also simple:

    >>abs = sqrt((A(:))' * (A(:)))
    abs =  2.2472
    >>A_norm = A / abs
    A_norm =
    
       0.034959   0.381229   0.034565   0.017124   0.055889
       0.121122   0.040889   0.220583   0.139722   0.088525
       0.127806   0.346703   0.134059   0.052637   0.112369
       0.226144   0.397411   0.355057   0.297343   0.178945
       0.141980   0.109375   0.144351   0.231000   0.157065
    

    In the abvove:

    • abs is the absolute value of the vector (its length), which is calculated with vectorized multiplications (A(:)' * A(:) is actually sum(A[i][j]^2))
    • Then we use it to normalize the vector so it will be of length 1.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In their paper describing Viola-Jones object detection framework (Robust Real-Time Face Detection by Viola
I am building a DDD system and we have all the requirements on paper
I've been evaluating a framework that on paper looks great. The problem is that
Their looks are the same actually
Is their any way can I check in PHP that my brower(s) FF/Chrome/IE/Safari popup
Is their any property for enable java script alerts in our webview? In android
Unfortunately their Wiki is down for maintenance and the web is not being helpful.
Is their a method to encode/decode HTML and URL (in Xcode, using Objective-C)? [NSString
Does their API allow my Facebook-connected user to add a friend?
Is their any way of counting number of django logins? The last_login field of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.