Skip to content

Commit

Permalink
move return further down
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilDohne committed Mar 8, 2024
1 parent 7d943a6 commit 462182f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/src/DeclareImageLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ std::unordered_map<Enum::ChannelID, std::vector<T>> generateImageData(py::array_
{
// Generate an unordered map with implicit bindings for the channels using a 2d or 3d numpy array
std::unordered_map<Enum::ChannelID, std::vector<T>> img_data_cpp;
// Temporary for testing
return img_data_cpp;

// This will e.g. be (3, 1024, 1024) for a 3 channel 1024x1024 image
std::vector<size_t> shape;
Expand All @@ -49,6 +47,9 @@ std::unordered_map<Enum::ChannelID, std::vector<T>> generateImageData(py::array_
py::value_error("image_data must have the same size as width * height");
}

// TEMPOARRY
return img_data_cpp;

// For RGB we have two options, either there is an alpha channel with the RGB channels or not.
if (color_mode == Enum::ColorMode::RGB)
{
Expand Down

0 comments on commit 462182f

Please sign in to comment.