Skip to content

Add four functions in scipy.ndimage - #3239

Merged
mergify[bot] merged 3 commits into
cupy:masterfrom
anaruse:scipy_ndimage_four_functions
Apr 9, 2020
Merged

mergify[bot] merged 3 commits into
cupy:masterfrom
anaruse:scipy_ndimage_four_functions

Conversation

@anaruse

@anaruse anaruse commented Mar 30, 2020

Copy link
Copy Markdown
Contributor

This PR is to make following four functions in scipy.ndimage available in CuPy.

I think this is relatively easy PR since the core routines required for the functions above are already implemented by #3216.

@takagi takagi added the cat:feature New features/APIs label Apr 4, 2020
@takagi takagi added this to the v8.0.0b2 milestone Apr 4, 2020
@takagi

takagi commented Apr 4, 2020

Copy link
Copy Markdown
Contributor

pfnCI, test this please.

@pfn-ci-bot

Copy link
Copy Markdown
Collaborator

Successfully created a job for commit 3484a95:

@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 3484a95, target branch master) succeeded!

@takagi takagi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except the comments on docstrings, would you check them?

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
Args:
input (cupy.ndarray): The input array.
size (tuple of ints): Shape of a flat and full structuring element used
for the greyscale dilation. Optional if ```footprint``` or

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for the greyscale dilation. Optional if ```footprint``` or
for the greyscale closing. Optional if ```footprint``` or

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
for the greyscale dilation. Optional if ```footprint``` or
```structure``` is provided.
footprint (array of ints): Positions of non-infinite elements of a flat
structuring element used for greyscale dilation. Non-zero values

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
structuring element used for greyscale dilation. Non-zero values
structuring element used for greyscale closing. Non-zero values

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
```structure``` is provided.
footprint (array of ints): Positions of non-infinite elements of a flat
structuring element used for greyscale dilation. Non-zero values
give the set of neighbors of the center over which maximum is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about ... over which closing is computed. or something like that?

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
give the set of neighbors of the center over which maximum is
chosen.
structure (array of ints): Structuring element used for the greyscale
dilation. ```structure``` may be a non-flat structuring element.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dilation. ```structure``` may be a non-flat structuring element.
closing. ```structure``` may be a non-flat structuring element.

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
Args:
input (cupy.ndarray): The input array.
size (tuple of ints): Shape of a flat and full structuring element used
for the greyscale dilation. Optional if ```footprint``` or

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for the greyscale dilation. Optional if ```footprint``` or
for the greyscale opening. Optional if ```footprint``` or

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
for the greyscale dilation. Optional if ```footprint``` or
```structure``` is provided.
footprint (array of ints): Positions of non-infinite elements of a flat
structuring element used for greyscale dilation. Non-zero values

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
structuring element used for greyscale dilation. Non-zero values
structuring element used for greyscale opening. Non-zero values

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
```structure``` is provided.
footprint (array of ints): Positions of non-infinite elements of a flat
structuring element used for greyscale dilation. Non-zero values
give the set of neighbors of the center over which maximum is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about ... over which opening is computed. or something like that?

Comment thread cupyx/scipy/ndimage/morphology.py Outdated
give the set of neighbors of the center over which maximum is
chosen.
structure (array of ints): Structuring element used for the greyscale
dilation. ```structure``` may be a non-flat structuring element.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dilation. ```structure``` may be a non-flat structuring element.
opening. ```structure``` may be a non-flat structuring element.

@anaruse

anaruse commented Apr 7, 2020

Copy link
Copy Markdown
Contributor Author

Thank you so much for your review. I fixed the docs. Sorry, I was bit lazy... Could you check it again? Thanks.

@takagi

takagi commented Apr 9, 2020

Copy link
Copy Markdown
Contributor

pfnCI, test this please.

@pfn-ci-bot

Copy link
Copy Markdown
Collaborator

Successfully created a job for commit 3b9802e:

@takagi takagi added the st:test-and-merge (deprecated) Ready to merge after test pass. label Apr 9, 2020
@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 3b9802e, target branch master) succeeded!

@mergify
mergify Bot merged commit 3d9342e into cupy:master Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:feature New features/APIs st:test-and-merge (deprecated) Ready to merge after test pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants