Questions about hog.py file

Stéfan van der Walt stefan at sun.ac.za
Fri Aug 24 08:22:07 EDT 2012


On Mon, Aug 6, 2012 at 6:31 AM, Omar Trinidad Gutiérrez Méndez
<omar.vpa at gmail.com> wrote:
>  I am reading the source code of the file hog.py, I found the next line of
> code:
>
> n_cellsx = int(np.floor(sx // cx))
>
> I don't know why they join the NumPy function floor and the // operator. Is
> there any reason to do this? I can't see. I feel that is doing the same
> thing twice.

I never followed up on this; has the issue been addressed by the
latest HoG fixes?

Stéfan



More information about the scikit-image mailing list