I have a Uint32 array, ARGB formatted. How do I convert that back to an 
Image so that I can call imwrite? (The alpha component is unimportant, but 
it would be nice to save it if the file format supports it)
 imagearray = reinterpret(RGB24,imagearray)
 image = Image(imagearray)
 imagearray = reinterpret(Uint8, data(image))
 image = convert(Image{RGB},imagearray) 
does not work, also
image = colorim(imagearray,"ARGB")
does not work.

I have tried
 imagearray = reinterpret(RGB24,imagearray)
 image = Image(imagearray)
 image = reinterpret(Uint8, data(image))
 imwrite(image,app.outputimagefilename)
but that gives a mapinfo error.
ERROR: `mapinfo` has no method matching mapinfo(::Type{ImageMagick}, ::Image
{RGB24,2,Array{RGB24,2}})


 imagearray = reinterpret(RGB24,imagearray)
 image = Image(imagearray)
 imwrite(image,app.outputimagefilename)
also gives the mapinfo error



Reply via email to