Skip to content

Shifting center after resampling real array #53

@hzarei4

Description

@hzarei4

Hello,

I wonder why the array's center is shifted after resampling to a larger size...

for example:

julia> a = disc(Float32, (11, 11), 0.2);

julia> argmax(a)
CartesianIndex(6, 6)

julia> b = resample(a, (111, 111));

julia> argmax(b)
CartesianIndex(51, 51)

The peak of the resampled array is at (51, 51) and not:

julia> size(b) 2
(55, 55)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions