Page 1 of 1

Temp error with BCMATCH

Posted: 2018-10-08T09:05:48-07:00
by pikkio123
Hello
I tried to use BCMATCH to match a group of images to achieve same luminosity and saturation to a target image.
I'm not very familiar with linux but I already tried other scripts and they work perfectly...
I tried the following on Ubuntu as Windows 10 subsystem:

Code: Select all

pikkio123@pikkio123:/mnt/c/Users/ColorBoost/Desktop/test1$ bcmatch -c gray -s hsb 244a.jpg 244.jpg 1.jpg
The image was done but with the following errors:

Code: Select all

pikkio123@pikkio123:/mnt/c/Users/ColorBoost/Desktop/test1$ bcmatch -c gray -s hsb 244a.jpg 244.jpg 1.jpg
convert: unable to open image `./bcmatch_S1_81.mpc': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: no images defined `info:' @ error/convert.c/ConvertImageCommand/3210.
convert: unable to open image `./bcmatch_S2_81.mpc': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: no images defined `info:' @ error/convert.c/ConvertImageCommand/3210.
convert: unable to open image `./bcmatch_S1_81.mpc': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: no images defined `info:' @ error/convert.c/ConvertImageCommand/3210.
convert: unable to open image `./bcmatch_S2_81.mpc': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: no images defined `info:' @ error/convert.c/ConvertImageCommand/3210.
convert: divide by zero `(-1.0*)/' @ error/fx.c/FxEvaluateSubexpression/2188.
convert: unknown image property "%[fx:1+(-)/]" @ warning/property.c/InterpretImageProperties/3678.
convert: divide by zero `(-1.0*)/' @ error/fx.c/FxEvaluateSubexpression/2188.
convert: unknown image property "%[fx:(-)/]" @ warning/property.c/InterpretImageProperties/3678.
I tried to change ./ with ./tmp/ on temporary variable declarations suspecting permissions issue but with same result.
Is there anyone who can give me a hint?

Used images in:
https://www.dropbox.com/sh/1fyscpz2ucjd ... zkvYa?dl=0

Thank you so much

Rob

Re: Temp error with BCMATCH

Posted: 2018-10-08T09:11:32-07:00
by pikkio123
Forgot to say that IM version is the following:

Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-07-31

Re: Temp error with BCMATCH

Posted: 2018-10-08T16:40:46-07:00
by fmw42
I will look into that and get back. It fails now for me also. Probably some change in Imagemagick since I created that old script.

But in the mean time try my other more current similar script, matchimage, which is likely much better at what you want to do. Note the order of the input images is swapped relative to bcimage.

Code: Select all

matchimage -c rgb 244.jpg 244a.jpg 2.jpg 

See http://www.fmwconcepts.com/imagemagick/ ... /index.php

Re: Temp error with BCMATCH

Posted: 2018-10-08T23:31:22-07:00
by fmw42
I have fixed the bug causing that problem. You can download it again, now, if you want. But I think you will find that matchimage does a better job for what I think you are trying to do.

Re: Temp error with BCMATCH

Posted: 2018-10-08T23:53:35-07:00
by pikkio123
Thanks a lot for your answer Fred

... I tried to use matchimage as you suggested and you can find the result here:

https://www.dropbox.com/sh/qyp6hysro6n9 ... xd-0a?dl=0

I had to match image a.jpg with ref.jpg and the result is a1.jpg

As you can see I had an inversion into the the shadow parts...
I knew from other discussion that this is an hard goal to reach but I would try to mix different techniques to approach the issue.
I'm sure many needs such solution but nobody have had the right idea till now...
Any suggestion?

Rob

Re: Temp error with BCMATCH

Posted: 2018-10-09T09:24:28-07:00
by fmw42
Perhaps I misunderstand. But I do not see the issue you point out. The result looks about as good as I would expect.