I used this code snippet and tried to open raw image. but it did not
work out..
is there any other way to open raw image?
vxl_byte image[50*50];
vil_image_view_base* img =3D new
vil_image_view<vxl_byte>(image,50,50,1,1,1,1);
=09
vil_image_view_base_sptr im_view(img);
=09
im_resource_plugin.load_the_image(im_view,pFileName);
this->im =3D
vil_new_image_resource(im_view->ni(),im_view->nj(),
=20
im_view->nplanes(),im_view->pixel_format());
this->im->put_view((const
vil_image_view_base&)*im_view,0,0);
-----Original Message-----
From: Ian Scott [mailto:ian.m.scott@...]
Sent: Tuesday, November 08, 2005 6:38 PM
To: Soumya P
Cc: Vxl-Users
Subject: Re: [Vxl-users] Regarding vil_save
Soumya P wrote:
> What i tried to do with raw image is=20
> spBaseImageraw =3D vil_load_image_resource_raw(pFileName);
> but this is returning a null pointer......
This function name is slightly misleading. It does not load images from=20
the RAW file format.
> how do i specify the type and size length to open the raw image...
You don't
See my previous email and the vil_image_view constructor described at=20
http://paine.wiau.man.ac.uk/pub/doc_vxl/core/vil/html/classvil__image__vi=
ew.h
tml#vil__image__viewa2.
Ian.
|