Skip to content

Seg fault if y, height, step input parameters do not result in integer number of rows #83

@sgasilov

Description

@sgasilov

Hi,

never noticed that before, but tofu gets angry if y, height, step input parameters do not result in integer number of rows. Could you round it off to avoid unnecessary seg. faults?

TestCT-rec>tofu sinos --projections /data/test_ez_ufo/TestCT-rec/003/sli --output /data/foo/sli-%04i.tif --y 200 --height 1799
TestCT-rec>tofu sinos --projections /data/test_ez_ufo/TestCT-rec/003/sli --output /data/foo/sli-%04i.tif --y 200 --height 1799 --y-step 51
Segmentation fault (core dumped)
TestCT-rec>tofu sinos --projections /data/test_ez_ufo/TestCT-rec/003/sli --output /data/foo/sli-%04i.tif --y 200 --height 1799 --y-step 50
Segmentation fault (core dumped)
TestCT-rec>tofu sinos --projections /data/test_ez_ufo/TestCT-rec/003/sli --output /data/foo/sli-%04i.tif --y 200 --height 1799 --y-step 10
Segmentation fault (core dumped)
TestCT-rec>tofu sinos --projections /data/test_ez_ufo/TestCT-rec/003/sli --output /data/foo/sli-%04i.tif --y 200 --height 1000 --y-step 10
TestCT-rec>tofu sinos --projections /data/test_ez_ufo/TestCT-rec/003/sli --output /data/foo/sli-%04i.tif --y 200 --height 1000 --y-step 50

Sergei.

Metadata

Metadata

Assignees

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