From: Amitha P. <pe...@cs...> - 2003-01-24 20:48:45
|
Hi What is the vil2 equivalent of the vil statements vil_memory_image_of<vxl_uint_16> img = vil_memory_image_of<vxl_uint_16>( vil_image_as( vil_load("something"), (vxl_uint_16*)0 ) ); This command will load "something" and convert it to a 16-bit greyscale image. I can therefore expect this program to handle 8-bit images too. It'll even handle 16-RGB images by "grey-scalifying" it. vil2_image_view<vxl_uint_16> im = vil2_load( "something" ); doesn't work when "something" is an 8-bit image. The vil2_convert_casts require two image_view<T> objects, while vil2_load returns a image_resource. (I've asked this before, but the mailing archives seem to be down, so I can't search 'em...) Thanks, Amitha. |