Skip to content

How can this be made to work with images with different size? #4

@yfarjoun

Description

@yfarjoun

First of all, this is really nice and fast template macher! thanks.

I was wondering if you can point to how one could make it work with images of different sizes...I tired with your test-cases but it failed:

python FourierMullinTransform.py ../../lena_orig.png ../../lena.png 
Traceback (most recent call last):
  File "FourierMullinTransform.py", line 250, in <module>
    sys.exit(main(sys.argv))
  File "FourierMullinTransform.py", line 223, in main
    imgFinal,scaleFactor,angleDeg,x,y = TransformImage(imgOriginal, imgTransformed)
  File "FourierMullinTransform.py", line 167, in TransformImage
    imgTransformedMagsFilter = imgTransformedMags * highPassFilter
ValueError: operands could not be broadcast together with shapes (256,256) (128,128) 

I changed the code a bit, so the lines probably do not match up...but the problem here seems to be that you are using the same highpass filter for both the original and the transformed..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions