Prev: Current directory
Next: OLS regression
From: Chris Rodgers on 18 May 2010 12:10 Can anyone explain what the difference is between an image, patch and surface object? How do they compare for 2D or 3D plotting? (I want to display some images, with linear interpolation between pixels when they are zoomed in (so they always look smooth). I then plan to draw various other lines on top of the image.) Many thanks in advance, Chris.
From: Walter Roberson on 18 May 2010 12:32 Chris Rodgers wrote: > Can anyone explain what the difference is between an image, patch and > surface object? > > How do they compare for 2D or 3D plotting? images cannot be rotated in 3D. surf() objects are represented as rectangular or 3D boxes, though possibly with some locations set to nan to cause that location not to be drawn (an important trick for non-regular shapes) patch() objects can be irregular shape and possibly self-intersecting and are not confined to one plane. I'm not sure what the best representation would be for smooth images when you zoom in. Possibly by using the image as a texture map on a surf or patch object. I do not think you will get the kind of interpolation you were hoping for from image() objects.
From: Chris Rodgers on 18 May 2010 12:49 Thanks for the nice summary. Chris.
|
Pages: 1 Prev: Current directory Next: OLS regression |