[mlpack-git] [mlpack/mlpack] edge_boxes: feature extraction updated, tests added (#696)

stereomatchingkiss notifications at github.com
Wed Jun 15 12:44:02 EDT 2016


> +  for (size_t i = 0; i <= 1024; ++i)
> +  {
> +    table(i) = i / 1024.0;
> +    
> +    if (table(i) > y0)
> +      table(i) = 116 * pow(table(i), 1.0/3.0) - 16.0;
> +    else
> +      table(i) = table(i) * a;
> +
> +    table(i) = table(i) * maxi;
> +  }
> +  for(size_t i = 1025; i < table.n_elem; ++i)
> +  {
> +    table(i) = table(i - 1);
> +  }
> +

I think it is a good idea, to make it run faster we could try to vectorize the codes more, I remember I post a link of matlab before([click me](http://pages.cs.wisc.edu/~dyer/cs766/hw/hw2/code/rgb2luv.m))

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67199274
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160615/b2d53f24/attachment.html>


More information about the mlpack-git mailing list