Skip to content

opencv vs scipy: tiff rotation performance #122

@decarlof

Description

@decarlof

in #117 the tiff rotation function was replaced by scipy (from opencv). The new implementation works correctly except we are receiving reports of poor performance.

Using scipy for rotation:

Namespace(exp_log='20idd_mpe_arp25.yaml', scan_id='niv1', rec_type='full', rot_axis=None, rot_step=None, mblur=None, save_sino=None, use_half=None)
parameter file successfully loaded!!
Start reading files and rotate image 0.205 degree....
filname template is /scratch/step_0p100_10f_000001.tif
Done. 1676.0738 sec
Size of projection is (3601, 1590, 1740)
Normalization....

Using Opencv"

Namespace(exp_log='20idd_mpe_arp25.yaml', scan_id='niv1', rec_type='full', rot_axis=None, rot_step=None, mblur=None, save_sino=None, use_half=None)
parameter file successfully loaded!!
Start reading files and rotate image 0.205 degree....
filname template is /scratch/step_0p100_10f_000001.tif
Done. 27.3548 sec
Size of projection is (3601, 1590, 1740)
Normalization....

@samtygier-stfc did you get similar performance?

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