Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
the code in this link

https://github.com/pi19404/OpenVision/[^]

ImgFeatures/lbpfeatures.hpp and lbpFeatures.cpp.

Imgproc/Histogram.hpp and Histogram.cpp.

i understand the concept of uniform lbp and spacial histogram but i need explaining for the code

help me
thanks
Posted
Comments
[no name] 24-May-14 15:08pm    
No one here is going to write a book for you to explain the code. Maybe pi19404 has the time an inclination to explain his code to you.
MSMHMA 24-May-14 17:56pm    
when i ask i meant any one post alink or a website which explain the code, i understand many functions in code but i confused about where calling them and some implementations of them
thanks alot
[no name] 24-May-14 18:00pm    
Then say what you mean. Don't you think that asking random strangers on the internet to explain some random code you found is going to help you? If you have a question or problem with someone else's code, then it's best to just simply go ask them. And no, I highly doubt the you will find a website or a link to anything that is going to explain that code to you.
MSMHMA 24-May-14 18:16pm    
ok...
in code there is a function initUniform this function call another function initHistogram why the first function call the second and what is the use of initHistogram i don't understand what is the channel

void LBPFeatures::initUniform()
{
lookup.resize(255);
int index=0;
for(int i=0;i<=255;i++)
{
bool status=checkUniform(i);
if(status==true)
{
lookup[i]=index;
index++;
}
else
{
lookup[i]=59;
}
}
spatialhist Hist;
Hist.initHistogram();

}

void spatialhist::initHistogram()
{
vector<int> channel;
channel.push_back(0);
hist.setChannel(channel);
vector<int> size;
size.push_back(sizeb+1);
hist.setHistSize(size);

}
[no name] 24-May-14 18:25pm    
Wow... okay.... you don't listen very well do you? initHistogram is called to initialize a spatialhist object named Hist. The "channel" that you are referring to is a vector collection.

1 solution

Not going to happen.
Do you have any idea how much work it is to explain code, particularly when you have:
1) No idea what skill level the BC reader has?
2) No visual feedback as to how well you are understanding what you are being told?

Even with both of those, each line if code can take a whole paragraph!

No. Either work it out for yourself, or task to the guy who wrote it - but don't be too surprised if he tells you to "Go away" as well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900