From: Szabolcs B. <sza...@gm...> - 2006-03-06 14:44:33
|
On 3/6/06, Amitha Perera <pe...@cs...> wrote: > The problem is that vil generally prefers to treat images as > multi-planar, so that a 3-component RGB image is regarded as a 3-plane > image with a planestep of 1 (i.e. interleaved planes). If you have > your rgb image from your function and write > vil_image_view<vxl_byte> rgb_planes =3D rgb; > you'd get an image such that > rgb_planes(i,j,0) =3D=3D rgb(i,j).r && > rgb_planes(i,j,1) =3D=3D rgb(i,j).g && > rgb_planes(i,j,2) =3D=3D rgb(i,j).b > > (This won't actually copy data, so you don't have to worry about > efficiency.) You should be able to save this planar image. > > Amitha. > Thanks for the explanation! Szabi |