Hi, I have some remarks and questions about the new "colorchart" source and "colormap" filter. In "colorchart" is a small error in the yellow field. It should be 231, 199, 31. Source: https://www.xritephoto.com/documents/literature/en/ColorData-1p_EN.pdf "colorchart" is missing in the table of contents of the documentation. Could you please also add an option for the chinese version which has slightly different colors? Source: https://www.aliexpress.com/item/32738129067.html The RGB values are shown in the 5th picture. Code is below. In "colormap" I'd like to know how the color from the "source" image is calculated. If a real image of a ColorChecker is used, then the borders between the fields must somehow be excluded. Is the average color over the whole 64x64 field used? Or is only one pixel used, from the center of the 64x64 field? Or is it the average color over a smaller area, for example the central 24x24 pixels? Michael static const uint8_t ref_china_colors[][3] = { { 115, 82, 69 }, // dark skin { 204, 161, 141 }, // light skin { 101, 134, 179 }, // blue sky { 89, 109, 61 }, // foliage { 141, 137, 194 }, // blue flower { 132, 228, 208 }, // bluish green { 249, 118, 35 }, // orange { 80, 91, 182 }, // purple red { 222, 91, 125 }, // moderate red { 91, 63, 123 }, // purple { 173, 232, 91 }, // yellow green { 255, 164, 26 }, // orange yellow { 44, 56, 142 }, // blue { 74, 148, 81 }, // green { 179, 42, 50 }, // red { 250, 226, 21 }, // yellow { 191, 81, 160 }, // magenta { 6, 142, 172 }, // cyan { 252, 252, 252 }, // white { 230, 230, 230 }, // neutral 8 { 200, 200, 200 }, // neutral 65 { 143, 143, 142 }, // neutral 5 { 100, 100, 100 }, // neutral 35 { 50, 50, 50 }, // black };
On Mon, Apr 25, 2022 at 9:16 PM Michael Koch <astroelectronic@t-online.de> wrote:
Hi,
I have some remarks and questions about the new "colorchart" source and "colormap" filter.
In "colorchart" is a small error in the yellow field. It should be 231, 199, 31. Source: https://www.xritephoto.com/documents/literature/en/ColorData-1p_EN.pdf
"colorchart" is missing in the table of contents of the documentation.
Could you please also add an option for the chinese version which has slightly different colors? Source: https://www.aliexpress.com/item/32738129067.html The RGB values are shown in the 5th picture. Code is below.
In "colormap" I'd like to know how the color from the "source" image is calculated. If a real image of a ColorChecker is used, then the borders between the fields must somehow be excluded.
Center pixel of patch is picked, that is fastest way. There is separate software for processing real world colorcharts. (Dealing with geometric transformation and color averaging)
Is the average color over the whole 64x64 field used? Or is only one pixel used, from the center of the 64x64 field? Or is it the average color over a smaller area, for example the central 24x24 pixels?
Michael
static const uint8_t ref_china_colors[][3] = { { 115, 82, 69 }, // dark skin { 204, 161, 141 }, // light skin { 101, 134, 179 }, // blue sky { 89, 109, 61 }, // foliage { 141, 137, 194 }, // blue flower { 132, 228, 208 }, // bluish green
{ 249, 118, 35 }, // orange { 80, 91, 182 }, // purple red { 222, 91, 125 }, // moderate red { 91, 63, 123 }, // purple { 173, 232, 91 }, // yellow green { 255, 164, 26 }, // orange yellow
{ 44, 56, 142 }, // blue { 74, 148, 81 }, // green { 179, 42, 50 }, // red { 250, 226, 21 }, // yellow { 191, 81, 160 }, // magenta { 6, 142, 172 }, // cyan
{ 252, 252, 252 }, // white { 230, 230, 230 }, // neutral 8 { 200, 200, 200 }, // neutral 65 { 143, 143, 142 }, // neutral 5 { 100, 100, 100 }, // neutral 35 { 50, 50, 50 }, // black };
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Am 25.04.2022 um 21:41 schrieb Paul B Mahol:
On Mon, Apr 25, 2022 at 9:16 PM Michael Koch <astroelectronic@t-online.de> wrote:
Hi,
I have some remarks and questions about the new "colorchart" source and "colormap" filter.
In "colorchart" is a small error in the yellow field. It should be 231, 199, 31. Source: https://www.xritephoto.com/documents/literature/en/ColorData-1p_EN.pdf
"colorchart" is missing in the table of contents of the documentation.
Could you please also add an option for the chinese version which has slightly different colors? Source: https://www.aliexpress.com/item/32738129067.html The RGB values are shown in the 5th picture. Code is below.
In "colormap" I'd like to know how the color from the "source" image is calculated. If a real image of a ColorChecker is used, then the borders between the fields must somehow be excluded.
Center pixel of patch is picked, that is fastest way. There is separate software for processing real world colorcharts. (Dealing with geometric transformation and color averaging)
If colormap isn't for processing of real world colorcharts, then what else is its purpose? Michael
On 4/25/2022 12:49 PM, Michael Koch wrote:
Am 25.04.2022 um 21:41 schrieb Paul B Mahol:
There is separate software for processing real world colorcharts.
If colormap isn't for processing of real world colorcharts, then what else is its purpose?
And what is that "separate software"? z!
On Mon, Apr 25, 2022 at 10:06 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 4/25/2022 12:49 PM, Michael Koch wrote:
Am 25.04.2022 um 21:41 schrieb Paul B Mahol:
There is separate software for processing real world colorcharts.
If colormap isn't for processing of real world colorcharts, then what else is its purpose?
Purpose is processing of processed real world colorcharts, not raw ones straight from your photos.
And what is that "separate software"?
z!
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Am 25.04.2022 um 22:19 schrieb Paul B Mahol:
On Mon, Apr 25, 2022 at 10:06 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 4/25/2022 12:49 PM, Michael Koch wrote:
Am 25.04.2022 um 21:41 schrieb Paul B Mahol:
There is separate software for processing real world colorcharts. If colormap isn't for processing of real world colorcharts, then what else is its purpose? Purpose is processing of processed real world colorcharts, not raw ones straight from your photos.
ok, preprocessing works with perspective and avgblur filters. Wouldn't it make sense to set nb_patches by default to all available patches? I see no reason why I should use fewer patches than available. Michael
Am 25.04.2022 um 22:19 schrieb Paul B Mahol:
On Mon, Apr 25, 2022 at 10:06 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 4/25/2022 12:49 PM, Michael Koch wrote:
Am 25.04.2022 um 21:41 schrieb Paul B Mahol:
There is separate software for processing real world colorcharts. If colormap isn't for processing of real world colorcharts, then what else is its purpose? Purpose is processing of processed real world colorcharts, not raw ones straight from your photos.
I did make a test where two of the 24 colors in the "source" image are identical. It's impossible to map one color to two different target colors. Shouldn't colormap throw an error message? Instead it quietly copies the input to the output. Is it possible to print the RMS error (before and after mapping) to the console output? Michael
On Tue, Apr 26, 2022 at 8:39 AM Michael Koch <astroelectronic@t-online.de> wrote:
Am 25.04.2022 um 22:19 schrieb Paul B Mahol:
On Mon, Apr 25, 2022 at 10:06 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 4/25/2022 12:49 PM, Michael Koch wrote:
Am 25.04.2022 um 21:41 schrieb Paul B Mahol:
There is separate software for processing real world colorcharts. If colormap isn't for processing of real world colorcharts, then what else is its purpose? Purpose is processing of processed real world colorcharts, not raw ones straight from your photos.
I did make a test where two of the 24 colors in the "source" image are identical. It's impossible to map one color to two different target colors. Shouldn't colormap throw an error message? Instead it quietly copies the input to the output.
It would be very slow to check if each source color is identical.
Is it possible to print the RMS error (before and after mapping) to the console output?
You can see any error when setting first video stream to have source colors or better just source colorchart, than you will see what target colors are, it should be identical to target colorchart stream. The more important thing is what happens with midcolors. And that depends on colorspace/kernel used.
Michael _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Am 26.04.2022 um 09:18 schrieb Paul B Mahol:
On Tue, Apr 26, 2022 at 8:39 AM Michael Koch <astroelectronic@t-online.de> wrote:
Am 25.04.2022 um 22:19 schrieb Paul B Mahol:
On Mon, Apr 25, 2022 at 10:06 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 4/25/2022 12:49 PM, Michael Koch wrote:
Am 25.04.2022 um 21:41 schrieb Paul B Mahol:
There is separate software for processing real world colorcharts. If colormap isn't for processing of real world colorcharts, then what else is its purpose? Purpose is processing of processed real world colorcharts, not raw ones straight from your photos. I did make a test where two of the 24 colors in the "source" image are identical. It's impossible to map one color to two different target
colors. Shouldn't colormap throw an error message? Instead it quietly copies the input to the output.
It would be very slow to check if each source color is identical.
But somehow the filter must internally have detected that mapping isn't possible if two source colors are identical. Because the output is an exact copy of the input. This case should trigger a warning or error in the console output. Michael
I wrote a few examples for the workflow with "colorchart" source and "colormap" filter. This is a nice feature for making color corrections. See chapters 2.31 and 2.32 in http://www.astro-electronic.de/FFmpeg_Book.pdf Michael
On Tue, Apr 26, 2022 at 6:48 PM Michael Koch <astroelectronic@t-online.de> wrote:
I wrote a few examples for the workflow with "colorchart" source and "colormap" filter. This is a nice feature for making color corrections. See chapters 2.31 and 2.32 in http://www.astro-electronic.de/FFmpeg_Book.pdf
Also there is way to speed up filtering by using haldclut(src) filter. First you apply colormap filter to haldclutsrc frames and than use haldclut filter with that frame as 2nd clut stream. With level option one can control how precise will 3d mapping be.
Michael
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (3)
-
Carl Zwanzig -
Michael Koch -
Paul B Mahol