Project

General

Profile

Actions

Bug #4205

closed

tanh Filter fails on rectangluar images

Added by Neil Voss over 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Carl Negro
Category:
Python scripting
Target version:
Start date:
05/24/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.3
Show in known bugs:
No
Workaround:

Description

Test case:

import numpy
from appionlib.apImage import imagefilter
a = numpy.random.random((256,128))
b = imagefilter.tanhHighPassFilter(a, 64)

b = imagefilter.tanhLowPassFilter(a, 4)

result
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "appionlib/apImage/imagefilter.py", line 425, in tanhLowPassFilter
    fftdata *= filter
ValueError: shape mismatch: objects cannot be broadcast to a single shape


Related issues 1 (0 open1 closed)

Blocks Appion - Feature #3988: New ImageFilter class for the python scriptingClosedNeil Voss02/28/2016

Actions
Actions

Also available in: Atom PDF