fmw42 wrote: ↑2017-01-26T10:19:38-07:00
I tried your transfercolor script and it did not seem to have an effect on the tiles.
What was your exact command and can you provide your input images and your output image? Perhaps the statistics of the two images are not different enough to see a change?
I was trying to transfer the histogram from tile 0, to tile 1, 2, and 3, but that didn't have any visible effect. However, using the histogram from my original unprocessed tiles seems to work extremely well.
I made a comparison album of the different color modes and their effects on the final tiled image:
https://imgur.com/a/A1HtN
The tiles I am trying to correct the color on, can be found here:
https://imgur.com/a/fXxjO
The original unprocessed tiles can be found here:
https://imgur.com/a/TXr5F
I used a variation of this command for each of the 4 tiles in my tests:
Code: Select all
./transfercolor.sh -c ycbcr plane_0_n.png plane_0_o.png plane_0.png
The lab option creates the best tiled output, and the ycbcr option creates the second best option. The RGB color space option seems to create the worst tiled output of the 3.
These results seem interesting as both VGG-16 ILSVRC and Salient Object Detection model were trained on a data set that can be understood in the context of Neural-Style as limiting it to standard RGB images with 8 bits of precision per color channel. In a bit more detail, Neural-Style converts input images to a BGR color space format before it "processes" them, and then it converts them back to the RGB color space before it outputs them. This is because models are trained with the BGR color space. Though as I understand it, the switch between the BGR color space and the RGB color space would likely not be concern with what I am doing? Thought maybe I just need to read up more on the different color spaces as this is expected?
Also, on the Transfercolor script page here:
http://www.fmwconcepts.com/imagemagick/ ... /index.php, I noticed what I think might be issues with the description?
You list "hsi" here, but the script does not have an "hsi" color mode option. The other issue is that "rgb" in the script is set as the default, and not "lab" as your webpage says:
-c ... colormode ... colorspace mode of processing; options are: rgb,
..................... hsi or ycbcr; default=lab