Ask Your Question
0

How to use CvBoost?

asked Aug 5 '13

CrazySiberianScientist gravatar image

Hello. I have some matrix MxN(M - count of weak classificators, N - count of results weak classificator at each validation image(positives and negatives):

Example:

1 1 1 1 0 0 0 0

1 1 1 0 0 1 0 0

1 0 1 1 1 0 0 0

1 1 1 1 0 0 0 0

1 1 1 1 1 0 0 0

Which tflag for CvBoost should I choose for right work for CvBoost? How to correctly create responses vector?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Aug 5 '13

berak gravatar image

tflag is one of CV_ROW_SAMPLE or CV_COL_SAMPLE

if you put one sample per row of your trainmat, use CV_ROW_SAMPLE and a Mat(num_samples,1,CV32S) for resonses.

per row

  // TrainingMat            responses

  s a m p l e                  1
  s a m p l e                  2
  s a m p l e                  1
  s a m p l e                  2
  s a m p l e                  1

per col

  s s s s s     // trainingmat
  a a a a a
  m m m m m 
  p p p p p
  l l l l l
  e e e e e

  1 2 1 2 1     // responses
Preview: (hide)

Question Tools

Stats

Asked: Aug 5 '13

Seen: 377 times

Last updated: Aug 05 '13