Ask Your Question

s_h1005's profile - activity

2017-09-26 02:32:53 -0600 received badge  Student (source)
2017-08-17 05:17:36 -0600 received badge  Enthusiast
2017-08-13 20:22:48 -0600 commented question LSD.CPP had a mistake?
2017-08-11 02:16:21 -0600 asked a question LSD.CPP had a mistake?

I find line 612 to line 627 in lsd.cpp in opencv3.2 is useless, am I right?

// Sort
int idx = n_bins - 1;
for(;idx > 0 && !range_s[idx]; --idx);
coorlist* start = range_s[idx];
coorlist* end = range_e[idx];
if(start)
{
    while(idx > 0)
    {
        --idx;
        if(range_s[idx])
        {
            end->next = range_s[idx];
            end = range_e[idx];
        }
    }
}

The codes attached here aim to make the list starts by the larger bin, howerer ,it doesn't works. "list[0]" is still the first position of a image.

In lsd.c, we can see the following codes, list_p points the largest bin.

  for(i=n_bins-1; i>0 && range_l_s[i]==NULL; i--);
  start = range_l_s[i];                             
  end = range_l_e[i];
  if( start != NULL )
    while(i>0)
      {
        --i;
        if( range_l_s[i] != NULL )
          {
            end->next = range_l_s[i];
            end = range_l_e[i];
          }
      }
  *list_p = start;
2017-05-25 01:09:26 -0600 commented answer How to set scan frequency when save jpg using PROGRESSIVE mode

Thank you very much.

2017-05-24 04:21:21 -0600 asked a question How to set scan frequency when save jpg using PROGRESSIVE mode

I saved jpg using PROGRESSIVE mode, this is my code:

Mat img = imread("input.jpg");
vector<int>compression_params;   
compression_params.push_back(IMWRITE_JPEG_PROGRESSIVE);
compression_params.push_back(1);
imwrite("out.jpg",img, compression_params);

Then I opened out.jpg by UltraEdit . I found that "FF DA" appeared 10 times , which meant that the scan time was 10 . How to change the scan time in OpenCV?