[vtkusers] Bug found in vtkTIFFReader

Julien Jomier julien.jomier at kitware.com
Tue Nov 4 04:20:00 EST 2014


Hi Matheus,

I just tried your code with the latest VTK and it runs without any 
issues. Maybe you are reaching the maximum memory of your app?

Julien

On 03/11/2014 19:30, matheus_viana wrote:
> Hi guys.
>
> I have an image processing algorithm that I am suppose to apply over many
> 16bit TIFF images. I wrote a simple routine that basically opens the image
> apply the algorithm and saves the result. However, I noticed that around the
> image number 250 the algorithm always crashes. Tracking back the problem I
> found a bug in the class vtkTIFFReader. This is a simple code that can be
> used to reproduce the error.
>
> Please download the sample.tif image at
>
> https://www.dropbox.com/s/pw15mo9ievnzx1o/sample.tif?dl=0
>
> I would appreciate any help.
>
> Thanks a lot.
>
> #include <vtkTIFFReader.h>
> #include <vtkSmartPointer.h>
>
> int main() {
> 	for (int i = 0; i < 400; i++) {
> 		vtkSmartPointer<vtkTIFFReader> TIFFReader =
> vtkSmartPointer<vtkTIFFReader>::New();
> 		TIFFReader -> SetFileName("sample.tif");
> 		TIFFReader -> Update();
> 		printf("%d\n",i);
> 	}
> 	return 0;
> }
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Bug-found-in-vtkTIFFReader-tp5729336.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>


More information about the vtkusers mailing list