Ask Your Question
0

what is the difference between calchist parameter using lbp and using uniformlbp

asked 2014-05-31 11:34:11 -0600

Hm gravatar image

updated 2014-05-31 13:37:35 -0600

berak gravatar image

i need to calculate histogram for uniform lbp image. parameters in calchist with lbp is image= source lbpimage (which i need it's histogram) nimage= number of source image channel= index of channel (for gray image is 0) mask= Mat() (for full image) output= the histogram image (which result) dims= Histogram dimensionality (1) histsize= number of bins (256 for gray level bin for each pixel) ranges= 0,256 (for gray level) uniform= true (ranges= { , } accumulate= false (for one histogram from one image)

this is for normal lbp what about uniform lbp (dims, histsize, ranges, ) is there any difference

thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-31 13:47:39 -0600

berak gravatar image

updated 2014-05-31 14:01:30 -0600

in the uniform case, the range is {0,59}

in the non-uniform case, the range is {0,256}


if our question was: is using 256 instead of 59 a waste (of diskspace/memory/cpu)? - yes, ofc.

if our question was: does it matter for the distance / prediction ? - no. adding artificial zeros does not change it .

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-31 11:34:11 -0600

Seen: 192 times

Last updated: May 31 '14