Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(805)

Issue 75055: A new C iterator: nieghborhood iterator (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by cournape
Modified:
12 years, 5 months ago
Reviewers:
Base URL:
http://svn.scipy.org/svn/scipy/trunk/trunk/
Visibility:
Public.

Description

This implements a new neighborhood iterator, to iterate on a set of points around a given point. This should be useful to implement some 2d/3d image processing. A few points: - It works for arbitrary arrays, and is created from another iterator (which can be a neighborhood iterator itself) - It handles boundaries conditions with 0 padding - An practical example can be found on github for a new correlation implementation (http://github.com/cournape/scipy3.git/cournape/clean_correlate branch, in scipy/signal/correlate_nd.c.src) - It is reasonably efficient (I don't have any baseline, though), but is not optimized for contiguous arrays. - There is one hack, which forces the iterator given as an argument to the constructor to be non contiguous, to force it to update its coordinates member.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -0 lines) Patch
scipy/signal/neighiter.h View 1 chunk +209 lines, -0 lines 0 comments Download
scipy/signal/neighiter.c View 1 chunk +116 lines, -0 lines 0 comments Download

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b