[Insight-Users] Unix->Linux

Luis Ibanez luis.ibanez@kitware.com
Wed, 06 Nov 2002 13:58:47 -0500


Hi Haydar,

Have you tried any of the other FLTK examples
distributed with ITK ?

Did you observe a similar behavior with any
of them ?

Notice that the fltkImageViewer is templated
over the pixel type... What pixel type are
you using for the display that is failing ?

What is the range of values that you anticipate
in this image ?


   Luis



=========================================================

Haydar Talib wrote:
> Hi Luis,
> 
> I'm using fltkImageViewer to display the images. Basically, the same 
> viewer will display correctly except for the one case.
> 
> --Haydar
> 
>  >Hi Haydar,
> 
>  >
> 
>  >What are you using for visualization ?
> 
>  >
> 
>  >Is there an easy way to identify if the
> 
>  >different behavior is happening on the
> 
>  >ITK image processing components or in
> 
>  >the visualization part of you code ?
> 
>  >
> 
>  >
> 
>  > Luis
> 
>  >
> 
>  >
> 
>  >=========================
> 
>  >
> 
>  >Haydar Talib wrote:
> 
>  >>Hello all, I have a small problem, perhaps someone may have a
> 
>  >>solution. Basically the problem is that some code will behave
> 
>  >>differently depending whether it is compiled on Unix and Linux. The
> 
>  >>code I am running uses four filter functions, including the
> 
>  >>Gaussian filter and GrayScaleErode and dilate. On Solaris, the code
> 
>  >>compiles and runs without any problem. On Linux, however, the code
> 
>  >>will compile but the output is not as expected. For the case of
> 
>  >>using a Gaussian filter, the Linux version behaves normally. When
> 
>  >>using dialte and erode, however, the output image is comprised
> 
>  >>entirely of zero-value pixels. The program is meant to display both
> 
>  >>the input image and the output image. The input image is always
> 
>  >>correctly displayed, but for the case of using Erosion and Dilation
> 
>  >>the output is surprising. The Solaris version yields the expected
> 
>  >>output image when using Erosion and Dilation. Does anyone know what
> 
>  >>could cause this strange discrepancy?
> 
>  >>Thank you in advance,
> 
>  >>Haydar Talib
> 
>  >>
> 
>  >>_________________________________________________________________
> 
>  >>MSN 8 with e-mail virus protection service: 2 months FREE*
>