<div dir="ltr"><div dir="ltr">On Thu, Jan 31, 2019 at 11:29 AM Andrey <<a href="mailto:alekseev@rambler.ru">alekseev@rambler.ru</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you for your answer. No artifacts don't move around when I change zoom.<br>
But the changing when I move reslice coursor on this view (not on another<br>
view only on the same). Image size 477x477 px, pixel spacing 0.25 mm. May be<br>
it's not so obvious on the uploaded images but seems that artifacts are<br>
edges of cells of grid. I've tried to show them with blue line on image. I'm<br>
not very strong in VTK what can you recomend?<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/t342685/bad_image.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/file/t342685/bad_image.png</a>> <br></blockquote><div><br></div><div>It looks to me like the image is being stretched using nearest-neighbor</div><div>interpolation before it is going into the input of the vtkImageActor. The</div><div>number of dislocations is the number of pixels by which the image is</div><div>stretched, and the dislocations would be expected to be evenly spaced,</div><div>just as we see in your screenshot. The texture interpolation is then</div><div>blurring the dislocations so that they look the way they do.</div><div><br></div><div>My suspicion is that vtkImageResliceMapper is doing some incorrect</div><div>calculations. It should not be stretching the image when you do an</div><div>orthogonal view, it should simply pass the image slices directly to</div><div>vtkImageActor. It is also possible (but less likely) that vtkImageActor</div><div>is stretching the image before generating the texture that is used to</div><div>display it on the screen.</div><div><br></div><div>I can try testing with a similarly sized image (probably not today, but</div><div>soon). Was this just a 2D slice, or was it a stack? If a stack, what</div><div>was the size and spacing? If the math in vtkImageResliceMapper is</div><div>bad, then certain image sizes probably trigger the error.</div><div><br></div><div> David</div></div></div>