-
Notifications
You must be signed in to change notification settings - Fork 493
ApplyRGB should honor Numpy internal matrix storage order #2075
Copy link
Copy link
Closed
Labels
BugUnwanted or incorrect behavior in currently available functionality.Unwanted or incorrect behavior in currently available functionality.PythonIssues that involve majority python development (vs C++).Issues that involve majority python development (vs C++).good first issueStandard label for new developers to locate good issues to tackle to learn about OCIO development.Standard label for new developers to locate good issues to tackle to learn about OCIO development.help wantedIssues that the TSC has decided are worth implementing, but don't currently have the dev resources.Issues that the TSC has decided are worth implementing, but don't currently have the dev resources.
Metadata
Metadata
Assignees
Labels
BugUnwanted or incorrect behavior in currently available functionality.Unwanted or incorrect behavior in currently available functionality.PythonIssues that involve majority python development (vs C++).Issues that involve majority python development (vs C++).good first issueStandard label for new developers to locate good issues to tackle to learn about OCIO development.Standard label for new developers to locate good issues to tackle to learn about OCIO development.help wantedIssues that the TSC has decided are worth implementing, but don't currently have the dev resources.Issues that the TSC has decided are worth implementing, but don't currently have the dev resources.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Numpy matrices may be stored in either row-major or column-major order. The user is typically not aware of the order being used, especially since some Numpy operators swap the order if it is more efficient for them. For example, transpose simply swaps the ordering flag rather than moving numeric values.
The applyRGB function in OCIO essentially just flattens the input and expects channel-interleaved ordering. Ideally, applyRGB would check the storage order and transpose values, if needed. At a minimum, it should issue a warning if the storage order is not as expected.