Source code for mantidimaging.core.utility.projection_angles

# Copyright (C) 2022 ISIS Rutherford Appleton Laboratory UKRI
# SPDX - License - Identifier: GPL-3.0-or-later

import math

import numpy as np

from mantidimaging.core.utility.data_containers import ProjectionAngles


[docs] def generate(max_angle, number_radiograms) -> ProjectionAngles: """ Generate equidistance projection angles. :param max_angle: The maximum angle of the tomography :param number_radiograms: The number of radiograms in the tomography :returns: list of projection angles """ return ProjectionAngles(np.linspace(0, (math.tau / 360) * max_angle, number_radiograms))