cvnlab / nsdcode

Code related to analyzing the Natural Scenes Dataset
BSD 2-Clause "Simplified" License
30 stars 8 forks source link

edge cases in matlab handles nan, and in python i have to cast them to 0 #10

Open iancharest opened 3 years ago

iancharest commented 3 years ago

this creates edge differences

kendrickkay commented 3 years ago

To elaborate, the issue is that the Matlab implementation explicitly sets to "badval" any location that is outside of valid locations. The Python implementation may be more forgiving than this