Hi,
I'm trying to get the peak for a bimodal histogram. Here is the code and i just could not filter the last two
int number=0;
int size=0;
for (int i=1; i<256-1;++i)
{ if(histoheight[i]>histoheight[i-1] && histoheight[i]>histoheight[i+1])
{
cout << "Peak Index: " <
↧