Hi Amitha,
Thanks for the help. I had tried doing what you suggested. But that
results in a segfault. Here are some details.
I have a pointer to a vifa_image_histogram object in my class, as a
protected member:
class HistogramMatch{
...
protected:
vifa_image_histogram *vhist;
};
I try to instantiate that object pointer by creating a new object, like
this:
vil_image_view<vxl_byte> image = vil_crop( bigimage, x1, y1, x2, y2 );
vhist = new vifa_image_histogram( &image );
This new call causes a segfault.
Any suggestions?
Thanks again,
-J-
Amitha Perera wrote:
>On Tue 26 Jul 2005, Junaed Sattar wrote:
>
>
>>Hi There,
>>The subject of the post says it all. How do I create a
>>vifa_image_histogram object from a vil_image_view<vxl_byte> object? The
>>constructor for vifa_image_histogram takes a vil_image_view_base_sptr
>>object, but my problem is I have the vil_image_view object from memory,
>>not disk files. So somehow I have to convert the vil_image_view object
>>to a vil_image_view_base_sptr object and pass it on to
>>vifa_image_histogram constructor. I'm stuck here. Any help would be
>>greatly appreciated!
>>
>>
>
>That interface is not correct. It shouldn't be taking a
>base_sptr. However, it may work if you just pass in &your_image,
>where your_image is an vil_image_view<vxl_byte>.
>
>Amitha.
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>Vxl-users mailing list
>Vxl-users@...
>https://lists.sourceforge.net/lists/listinfo/vxl-users
>
>
|