Skip to content

Interpolation aritifact on pitch rotation #31

@ivantishchenko

Description

@ivantishchenko

I'm trying to compare the outputs of equilib to another library https://github.com/BlueHorn07/pyEquirectRotate/

pyEquirectRotate:

# (yaw, pitch, roll) in degree
equirectRot1 = EquirectRotate(h, w, (-90, 3, 0))
rotated_image = equirectRot1.rotate(img_ldr)
Image

equilib :

rots = {'roll': np.radians(0), 'pitch': np.radians(3), 'yaw': np.radians(90)}
equi_img = np.transpose(img_ldr, (2, 0, 1))
rotated_image = equi2equi(src=equi_img, rots=rots, mode='bilinear')
rotated_image = np.transpose(rotated_image, (1, 2, 0))
Image

Both libraries produce the same output visually, but there is an artifact in case of equilib. There is a patch of blue sky right in the middle of the gray floor. Is it possible to get rid of this artifact? I tried all supported interpolation modes: nearest, bilinear and bicubic, but couldn't get rid of the tiny blue patch.

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