times for that image tmp3.pngfmw42 wrote:The time delay is writing all the pixels from binary to ascii text format with all the required information about coordinates and color. That is slow. Note time is a unix function. It will be even slower adding grep. But the main slowdown is converting to txt format.
time convert logo: logo:png
real 0m0.055s
user 0m0.026s
sys 0m0.015s
time convert logo: logo.txt
real 0m2.654s
user 0m2.477s
sys 0m0.034s
http://i48.tinypic.com/14ajwjk.png
real 0.672s
user 0.015s
sys 0.031s
It really print all pixels, I did not realized that it prints black pixels. That is not the best way for me.
It takes cca 0.5 of seconds
but with the | grep white command:
real 0.813s
user 0.061s
sys 0.061s
What other method to use to get first white pixel?