From: Julio Pastrana <pastrana@bg...>  20070213 16:21:49

Dear VXL users I would like to ask about some functions that exist in Matlab/Octave and I want to know if there something similar in VXL. I apologise for any inconvinience that these questions may cause I am still trying to learn VXL (newvie newvie) 1) bwarea(binaryimage) Estimates the area of the "on" pixels of BW. 2)) Is there a function like the following one in octave: b = bwborder(binaryimage) %% where im is a binary matrix b is the borders in the 01 matrix im. 4neighborhood is considered. A pixel is on the border if it is set in im, and it has at least one neighbor that is not set. 3) Can I do a XOR between 2 matrix. like in Octave I can do xor(A,B) where A and B are matrix 4) How can I use the VNL matrix operations with the vil_image types, is there a wraper that cast my image matrix into a vnl_matrix (e.g) vil_image_view<float> to vnl_matrix<float> somthing like the "vil_convert_cast" but for VIL > VNL and viceversa 5) Convolution ( I already asked this question but no one answered ) How do I get rid of the border after a convolution do I need to add some extra rows and colunms with zeros. I want a convolution that yileds on a matrix of the same size. Thank you vxlusers I will appreciate any contributions =) Julio 