Questions tagged [scipy.ndimage]

50 questions
0
votes
1 answer

scipy.ndimage.generic_filter1d not working

I am trying to use scipy.ndimage.generic_filter1d for the first time, but it's not going well. Here's what I'm trying import numpy as np from scipy.ndimage import generic_filter1d def test(x): return x.sum() im_cube =…
user3433489
  • 911
  • 2
  • 10
  • 24
0
votes
1 answer

Shaped gradient fill in numpy/scipy

Looking for a way to fill all of the values within an arbitrary shape with a gradient of values... which must follow the outline of the shape. For example, the "shaped gradient" fill tool in gimp would give you: Output should be a 2d numpy array.
0
votes
2 answers

What does this image-kernel correlation matrix represent?

I am experimenting with some computer vision techniques, specifically feature detection. I am trying to identify features by conducting auto-correlation between an image and a feature-kernel. However, the resulting correlation-matrix doesn't make…
-2
votes
1 answer

How to search numbers, letters as well as alphanumeric from an image?

what I want to do is a image recognition is given image (5000 × 3500) dimension (white background) the image will have geometric figure as well as alphanumerical python will do the recognition of.
-4
votes
2 answers

What is the shortest way to calculate running median in python?

I need to calculate a running median in python. Currently I do it like this: med_y = [] med_x = [] for i in numpy.arange(240, 380, 1): med_y.append(numpy.median(dy[(dx > i)*(dx < i+20)])) med_x.append(i + 10) Here the data is stored in dx…
Juha
  • 2,053
  • 23
  • 44
1 2 3
4