View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013495VTK(No Category)public2012-10-08 08:002012-12-04 09:46
ReporterSeungbum Koo 
Assigned ToDavid Gobbi 
PriorityhighSeverityminorReproducibilityhave not tried
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0013495: vtkImageActor image shift
DescriptionImage is shifted by one or two pixels in vtkImageActor. It is observed in 5.8.0 and 5.10.0. When I tested it using a color picture then it looks like color layers shift differently.

Attached is a test result using a 20x10 pixel BMP image (24bit, made in PhotoShop) with some grids. Left image is the original image and the right image is the image on vtkImageActor through the following pipeline. You can see a strangely shifted image.

vtkBMPReader
vtkImageShiftScale
vtkImageShiftScale.SetOutputScalarTypeToUnsignedChar()
vtkImageData
vtkImageActor
vtkImageActor.InterpolateOff()
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filespng file icon vtkimageactor_problem.PNG [^] (51,491 bytes) 2012-10-08 08:00


png file icon imageactor.png [^] (15,478 bytes) 2012-10-29 23:11

 Relationships

  Notes
(0029587)
David Gobbi (developer)
2012-10-29 23:25
edited on: 2012-10-29 23:27

I cannot reproduce this bug. I grabbed a screenshot of your test image, resized it to 10x20, saved it as a png file, and displayed it with vtkImageActor. The result is shown in imageactor.png. The rendered result is identical to the original image (except for the border, which can be rendered by calling vtkImageActor->GetMapper()->BorderOn()).

I suspect that the problem is due to incompatibility between your BMP file and the vtkBMPReader. Try using a different file format (PNG, TIFF, JPEG or PNM).


 Issue History
Date Modified Username Field Change
2012-10-08 08:00 Seungbum Koo New Issue
2012-10-08 08:00 Seungbum Koo File Added: vtkimageactor_problem.PNG
2012-10-29 23:11 David Gobbi File Added: imageactor.png
2012-10-29 23:25 David Gobbi Note Added: 0029587
2012-10-29 23:27 David Gobbi Note Edited: 0029587
2012-12-04 09:45 David Gobbi Assigned To => David Gobbi
2012-12-04 09:45 David Gobbi Status backlog => tabled
2012-12-04 09:45 David Gobbi Status tabled => closed
2012-12-04 09:46 David Gobbi Resolution open => unable to reproduce


Copyright © 2000 - 2018 MantisBT Team