To the extent that I can recreate what you're doing, it works fine for me on
Linux. Looks like an ImageMagick problem. My advice would be to open an issue
over at Homebrew.jl.
--Tim
On Wednesday, October 15, 2014 06:31:51 PM Adrian Cuthbertson wrote:
> I have three float32 arrays containing image sensor radiances for red,
> green and blue. I've normalised them to contain values between 0.0 and 1.0.
> I am trying to create a color Image from this data as follows:
>
> julia> (rd,gr,bl) = prepArrays(.....
> julia> typeof(rd)
> Array{Float32,2}
> julia> size(rd)
> (512,2048)
>
> julia>
> o=Overlay((rd,gr,bl),(RGB(1,0,0),RGB(0,1,0),RGB(0,0,1)),((0.0,1.0),(0.0,1.0,
> ),(0.0,1.0)));
>
> julia> img=Image(o);
>
> imwrite(img, "test.png")
> ERROR: image coder signature mismatch `MIFF': 68910 != 68710 @
> error/module.c/OpenModule/1318
> in error at error.jl:21
> in error at /Users/adrian/.julia/Images/src/ioformats/libmagickwand.jl:150
> in writeimage at
> /Users/adrian/.julia/Images/src/ioformats/libmagickwand.jl:240
> in imwrite at /Users/adrian/.julia/Images/src/io.jl:163
>
> julia> img
> RGB Image with:
> data: 512x2048
> Overlay{Float64,2,3,(Array{Float32,2},Array{Float32,2},Array{Float32,2}),(Sc
> aleMinMax{Float32,Float32,Float32},ScaleMinMax{Float32,Float32,Float32},Scal
> eMinMax{Float32,Float32,Float32})} properties:
>
> versioninfo()
> Julia Version 0.3.2-pre+54
> Commit 602f55a* (2014-10-11 23:01 UTC)
> Platform Info:
> System: Darwin (x86_64-apple-darwin12.5.0)
> CPU: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
> WORD_SIZE: 64
> BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Core2)
> LAPACK: libopenblas
> LIBM: libopenlibm
> LLVM: libLLVM-3.3
> On mac OSX 10.8
>
> Could anyone assist? Am I doing this correctly? Is there a better method?
>
> Thanks, Adrian.