Skip to content

Commit b8ce68f

Browse files
committed
Minor fixes
- Fixed indentation for "--mat-method STR" in README.md - Fixed float suffix for settings.custom_matrix assignment in image_converter.cpp Signed-off-by: Mikael Sundell <[email protected]>
1 parent 91a46a0 commit b8ce68f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ A help message with a description of all command line options can be obtained by
180180
--help Print help message
181181
--version Print version and exit
182182
--wb-method STR White balance method. Supported options: metadata, illuminant, box, custom. (default: metadata)
183-
--mat-method STR IDT matrix calculation method. Supported options: auto, spectral, metadata, Adobe, custom. (default: auto)
183+
--mat-method STR IDT matrix calculation method. Supported options: auto, spectral, metadata, Adobe, custom. (default: auto)
184184
--illuminant STR Illuminant for white balancing. (default = D55)
185185
--wb-box X Y W H Box to use for white balancing. (default = (0,0,0,0) - full image)
186186
--custom-wb R G B G Custom white balance multipliers.

src/rawtoaces_util/image_converter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ bool ImageConverter::parse_parameters( const OIIO::ArgParse &arg_parser )
10641064
[&]() {
10651065
for ( int i = 0; i < 3; i++ )
10661066
for ( int j = 0; j < 3; j++ )
1067-
settings.custom_matrix[i][j] = i == j ? 1.0 : 0.0;
1067+
settings.custom_matrix[i][j] = i == j ? 1.0f : 0.0f;
10681068
} );
10691069

10701070
auto crop_box = arg_parser["crop-box"].as_vec<int>();

0 commit comments

Comments
 (0)