Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dynamic transposed_view #756

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ struct rotated90ccw_view_fn
};

template <typename ResultView>
struct tranposed_view_fn
struct transposed_view_fn
{
using result_type = ResultView;

template <typename View>
auto operator()(View const& src) const -> result_type
{
return result_type{tranposed_view(src)};
return result_type{transposed_view(src)};
}
};

Expand Down Expand Up @@ -196,7 +196,7 @@ auto transposed_view(any_image_view<Views...> const& src)
-> typename dynamic_xy_step_transposed_type<any_image_view<Views...>>::type
{
using result_view_t = typename dynamic_xy_step_transposed_type<any_image_view<Views...>>::type;
return variant2::visit(detail::tranposed_view_fn<result_view_t>(), src);
return variant2::visit(detail::transposed_view_fn<result_view_t>(), src);
}

/// \ingroup ImageViewTransformations90CW
Expand Down
Loading