Calculating the Distance Map for Binary Sampled Data

Similar documents
Using Distance Maps for Accurate Surface Representation in Sampled Volumes

2 Michael E. Leventon and Sarah F. F. Gibson a b c d Fig. 1. (a, b) Two MR scans of a person's knee. Both images have high resolution in-plane, but ha

Volume visualization. Volume visualization. Volume visualization methods. Sources of volume visualization. Sources of volume visualization

Geometric Representations. Stelian Coros

Depth Estimation for View Synthesis in Multiview Video Coding

Under My Finger: Human Factors in Pushing and Rotating Documents Across the Table

Contours & Implicit Modelling 4

Volume Illumination and Segmentation

3D Volume Mesh Generation of Human Organs Using Surface Geometries Created from the Visible Human Data Set

Display. Introduction page 67 2D Images page 68. All Orientations page 69 Single Image page 70 3D Images page 71

Efficient Volumetric Ray Casting for Isosurface Rendering

Fast Distance Transform Computation using Dual Scan Line Propagation

NIH Public Access Author Manuscript Proc Soc Photo Opt Instrum Eng. Author manuscript; available in PMC 2014 October 07.

QueryLines: Approximate Query for Visual Browsing

Toward Spatial Queries for Spatial Surveillance Tasks

Contours & Implicit Modelling 1

Exhaustive Generation and Visual Browsing for Radiation Patterns of Linear Array Antennas

A Study of Medical Image Analysis System

A Viewer for PostScript Documents

GroBoto v3 SeamNet Mesh Notes

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Learning local evidence for shading and reflectance

Technical Report. Removing polar rendering artifacts in subdivision surfaces. Ursula H. Augsdörfer, Neil A. Dodgson, Malcolm A. Sabin.

View Synthesis for Multiview Video Compression

Scalar Visualization

Special Topics in Visualization

Multi-Camera Calibration, Object Tracking and Query Generation

Isosurface Rendering. CSC 7443: Scientific Information Visualization

Cutter Workpiece Engagement Calculations for Five-axis Milling using Composite Adaptively Sampled Distance Fields

Lightcuts. Jeff Hui. Advanced Computer Graphics Rensselaer Polytechnic Institute

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

FAST IMAGE ANALYSIS USING KOHONEN MAPS

DiFi: Distance Fields - Fast Computation Using Graphics Hardware

11/1/13. Visualization. Scientific Visualization. Types of Data. Height Field. Contour Curves. Meshes

Visualization. CSCI 420 Computer Graphics Lecture 26

Scientific Visualization. CSC 7443: Scientific Information Visualization

CSC Computer Graphics

Sensor Placement Tool for Rapid Development of Video Sensor Layouts

Visualization Computer Graphics I Lecture 20

Computing 3D Geometry Directly From Range Images

Emissive Clip Planes for Volume Rendering Supplement.

Extensions of H.264/AVC for Multiview Video Compression

Improved Spatial Localization in 3D MRSI with a Sequence Combining PSF-Choice, EPSI and a Resolution Enhancement Algorithm

Volume-based Haptic Model for Bone-drilling

Chapter 3 Set Redundancy in Magnetic Resonance Brain Images

EECS490: Digital Image Processing. Lecture #19

3D Surface Reconstruction of the Brain based on Level Set Method

Scientific Visualization Example exam questions with commented answers

Visualization Computer Graphics I Lecture 20

Height Fields and Contours Scalar Fields Volume Rendering Vector Fields [Angel Ch. 12] April 23, 2002 Frank Pfenning Carnegie Mellon University

Selective Space Structures Manual

Brain Surface Conformal Spherical Mapping

Fast Region-of-Interest Transcoding for JPEG 2000 Images

Interpol, Routines for Interpolation

Image Processing: Final Exam November 10, :30 10:30

Isophote-Based Interpolation

3D VISUALIZATION OF SEGMENTED CRUCIATE LIGAMENTS 1. INTRODUCTION

Real-time Soft Tissue Modelling for Webbased Surgical Simulation: SurfaceChainMail

Solid Modeling. Michael Kazhdan ( /657) HB , FvDFH 12.1, 12.2, 12.6, 12.7 Marching Cubes, Lorensen et al.

Scalar Visualization

Modelling a Lamb Hind Leg

Appendix E Calculating Normal Vectors

CS 4620 Midterm, March 21, 2017

Segmentation of Bony Structures with Ligament Attachment Sites

Basic relations between pixels (Chapter 2)

Edge and local feature detection - 2. Importance of edge detection in computer vision

White Pixel Artifact. Caused by a noise spike during acquisition Spike in K-space <--> sinusoid in image space

Circular Arcs as Primitives for Vector Textures

Reconstruction of complete 3D object model from multi-view range images.

9. Three Dimensional Object Representations

MR IMAGE SEGMENTATION

The Steerable Pyramid: A Flexible Architecture for Multi-Scale Derivative Computation

Introduction to Computer Graphics. Modeling (3) April 27, 2017 Kenshi Takayama

Surface Reconstruction. Gianpaolo Palma

A Depth Buffer Based Voxelization Algorithm

A Constrained Delaunay Triangle Mesh Method for Three-Dimensional Unstructured Boundary Point Cloud

HISTOGRAMS OF ORIENTATIO N GRADIENTS

Modeling 3D Objects: Part 2

Performance Issues in Shape Classification

coding of various parts showing different features, the possibility of rotation or of hiding covering parts of the object's surface to gain an insight

Improved Illumination Estimation for Photon Maps in Architectural Scenes

Introduction to Computer Vision. Human Eye Sampling

Model Based Segmentation of Clinical Knee MRI

Co-Dimension 2 Geodesic Active Contours for MRA Segmentation

Design of an On-Chip Reflectance Map

High Quality Rendering of Attributed Volume Data

Generation of Smooth and Accurate Surface Models for Surgical Planning and Simulation

CT IMAGE PROCESSING IN HIP ARTHROPLASTY

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

SuRVoS Workbench. Super-Region Volume Segmentation. Imanol Luengo

Data Visualization (DSC 530/CIS )

We present a method to accelerate global illumination computation in pre-rendered animations

Image Enhancement: To improve the quality of images

Segmentation and Modeling of the Spinal Cord for Reality-based Surgical Simulator

Efficient View-Dependent Sampling of Visual Hulls

A General Purpose Queue Architecture for an ATM Switch

Indirect Volume Rendering

Design Gallery Browsers Based on 2D and 3D Graph Drawing (Demo)

Statistical Shape Analysis of Anatomical Structures. Polina Golland

Chapter 6 Visualization Techniques for Vector Fields

Transcription:

MITSUBISHI ELECTRIC RESEARCH LABORATORIES http://www.merl.com Calculating the Distance Map for Binary Sampled Data Sarah F. Frisken Gibson TR99-6 December 999 Abstract High quality rendering and physics-based modeling in volume graphics have been limited because intensity-based volumetric data do not represent surfaces well. High spatial frequencies due to abrupt intensity changes at object surfaces result in jagged or terraced surfaces in rendered images. Use of a distance-to-closest-surface function to encode object surfaces allows accurate reconstruction of objet surfaces for volumetric data. However, constructing the distance map for distance-based rendering requires a prior model of the object surface. Here we present a number of methods that can be used to estimate the distance map from a binary segmented volume, where no prior knowledge of object surfaces exists. This work may not be copied or reproduced in whole or in part for any commercial purpose. Permission to copy in whole or in part without payment of fee is granted for nonprofit educational and research purposes provided that all such whole or partial copies include the following: a notice that such copying is by permission of Mitsubishi Electric Research Laboratories, Inc.; an acknowledgment of the authors and individual contributions to the work; and all applicable portions of the copyright notice. Copying, reproduction, or republishing for any other purpose shall require a license with payment of fee to Mitsubishi Electric Research Laboratories, Inc. All rights reserved. Copyright c Mitsubishi Electric Research Laboratories, Inc., 999 0 Broadway, Cambridge, Massachusetts 09

MERLCoverPageSide

Calculating the Distance Map for Binary Sampled Data SarahF.F.Gibson MERL A Mitsubishi Electric Research Laboratory 0 Broadway, Cambridge, MA, 09 Abstract High quality rendering and physics-based modeling in volume graphics have been limited because intensity-based volumetric data do not represent surfaces well. High spatial frequencies due to abrupt intensity changes at object surfaces result in jagged or terraced surfaces in rendered images. Use of a distance-to-closestsurface function to encode object surfaces allows accurate reconstruction of objet surfaces for volumetric data. However, constructing the distance map for distance-based rendering requires a prior model of the object surface. Here we present a number of methods that can be used to estimate the distance map from a binary segmented volume, where no prior knowledge of object surfaces exists. Keywords: Volume Rendering, Volume Graphics, Medical Applications, Surgical Simulation, Physics-based Graphics, Haptic Feedback Introduction In [], it was shown that surfaces can be encoded into volumetric data by storing the distance-to-closest-surface value at each sample point in the data. The distance map has some attractive properties. First, the zero-value of the distance map locates surfaces while the gradient of the distance map yields surface normals. Second, when the sampling rate of the volumetric data is adequate (i.e. when it is large relative to the surface curvature), a low-cost 6-point central difference gradient estimator applied to the distance map can accurately reconstruct surface normals near the surface. Third, although folds and object edges or corners introduce singularities and nonlinearities into the distance field that cause shading artifacts with a central difference gradient estimator, the presence of these irregularities in the distance map can be easily detected during rendering so that higher order filters or more sophisticated gradient estimation methods can be locally applied. Fourth, in addition to applications in volume rendering, the distance map approach can be used to reconstruct surface normals and penetration distances for applications in haptics and physics-based modeling. While the distance map enables high quality rendering and shading of surfaces in volumetric data, it requires a prior model of the surface. However, in binary-sampled data, exact knowledge of the underlying object surface is missing and distance maps must be approximated from the binary data rather than from the true surface. In this working paper, we present the results of experiments to test various existing methods for estimating distance maps from binary segmented data. The results of these tests show that existing methods do not provide artifact-free distance maps. Five different distance metrics are compared for a D circle and the artifacts that result from errors in the distance map are illustrated for a volume rendered sphere. This report uses a simple sphere so that artifacts can be easily compared. In practice, we have found that artifacts are particularly severe in data that is not isometric where the data is sampled at different rates along different major axes. This is often the case in MRI imaging, where the in-plane sampling rate is frequently much higher that the spacing between planes. Because these existing methods do not generate satisfactory distance maps from binary data, we have developed a new method for calculating distances from the surface of a binary object. This method, Constrained Elastic Surface Nets, is detailed in []. Calculating Distances from Binary Data Binary volumetric data no longer contains an accurate representation of object surfaces. This section analyzes several techniques for estimating surfaces and their corresponding distance maps from binary databy comparing errors in these distance maps for a circular object. Volume rendered images for distance maps of a binary sphere that were created with some of these 5 methods illustrate the artifacts produced by errors in the distance approximations. Perhaps the most common source of binary volumetric data is segmented medical data, where different tissues or structures are each assigned a unique classification or type. This paper does not advocate the use of a distance map with grey-scale data because the gradient of the grey-scale data often provides a good estimate of surface normals[]. However, Figure, a D slice from a D MRI image of a human knee, illustrates a case where the grey-scale gradient does not give a good surface normal estimate. Figure b) was calculated by applying a central difference operator to Figure a) at hand-segmented edge points along the femur, one of the bones in the knee. Because the bone surface is generally smooth and of uniform density, we expect surface normals to have a relatively constant magnitude and a slowly varying direction. However, because the gradient depends on the thickness and image intensity of materials that are adjacent to the bone surface, and because there are a variety of materials adjacent to the femur, the estimated normals vary dramatically around the edge of the femur. Even when the magnitude of the gradient vector is normalized as in Figure c), unexpected and sudden changes in the direction of the image gradient would introduce severe artifacts into an image shaded using greyscale gradients. For this reason, it is sometimes necessary to calculate surface normals from a binary segmentation of objects rather than from the original measured grey-scale data. In binary-sampled data, exact knowledge of the underlying object surface is missing. Distance maps must be approximated from the binary data rather than from the true surface. Two basic strategies are: ) estimate distances directly from the binary values; and ) estimate the surface based on local binary values and calculate distances from this surface. In this section, we describe methods from both of these categories, illustrate errors in these methods by comparing estimated D distance maps to the true distance function of a circle, and illustrate the effect of the errors on surface normal calculation in images of volume rendered spheres. Five different methods were used to calculate the distance from the edge of a binary D circle. Methods calculated directly from the binary values include the chessboard distance, the city-block distance, and the Euclidean distance. These methods use the distance metrics illustrated in Figure and are detailed for D dis-

a) b) c) Figure : a) D Magnetic Resonance Image (MRI) cross section through a human knee. b) image gradient vectors calculated using central differences on the grey-scale data at edge points of the segmented femur. c) image gradient vectors with a normalized magnitude. The direction and magnitude of image gradients vary much more than we would expect the surface normals of the knee bone to vary, in some cases pointing inward when we expect an outward facing normal. Hence, applying a gradient operator to the greyscale data does not always provide a good estimate of surface normals. (Data and segmented image courtesy of R. Kikinis, Brigham and Women s Hospital, Boston MA). 4 4 4 0 4 0 8 5 5 8 5 5 0 5 5 8 5 5 8 Dist. Measure Filter Max Error Min Error city block none 4.9-8.67 chessboard none.00-9.6 euclidean none 5.5 -.08 euclidean x Gaussian 5.5 -.9 euclidean 5x5 Gaussian 5.5 -.8 euclidean 5x5 box 5.5 -.7 marching cubes none.0 -.0 central point none 0.7-0.69 central point 5x5 box.49-0.69 Table : Errors (in pixels) between the true distance map and estimated distance maps for a binary circle of radius 50 pixels using various distance measures. As indicated, in some cases the approximate distance fields were smoothed with a Gaussian or a box averaging filter. box averaging filters. Figure 4 are images of the difference between the true distance map and the calculated distance maps for various distance estimation methods. In the images, a mid-level grey value represents zero error while black or white represent large negative or positive errors respectively. The magnitude and variance of the error along the edge of the circle in Figure 4 shows that for a circle, the smoothed central-point distance method provides the best estimate of the true distance. Figure : Distance metrics used by the (left to right): city-block, chessboard and Euclidean distance methods. The figures illustrate the assigned distance of neighboring pixels from the central pixel for the three methods. tances in [5]. Extending these algorithms to D is straightforward. The city-block distance and Euclidean distance methods have been implemented in D. The remaining two methods approximate the surface from local binary values and then estimate distances to the approximate surface. The first method is analogous to the Marching Cubes algorithm [4]. It assumes that the surface lies in cubes bounded by 8 elements with different binary values. For each cube containing a surface, the surface is assumed to cross cube edges mid-way between elements with different binary values. In D, the constructed edge becomes a sequence of straight lines with endpoints midway between elements with different binary values. Once the edge is defined, distances from the edge are calculated using a modification of the Euclidean distance filter. In the second method, the constructed surface connects points at the center of each cube containing a surface. The distance map is computed from the mesh of center points using Euclidean distances. This central-point method has been implemented in D. Figure shows the true D distance map for a circle and the approximate distances calculated using the chessboard distance metric and the central-point distance method. Only small differences are visible from these intensity images. Table reports the maximum and minimum errors of the estimated distance compared to the true distance for various methods. For some of the methods, various smoothing filters were applied to the distance maps and the resultant errors for these estimates are also presented. The smoothing filters utilized were a x Gaussian filter, and 5x5 Gaussian and In [5], true Euclidean distances are approximated to allow for an integer-based algorithm in the interest of speed. In our implementation, floating point distances were used. a) b) c) Figure : Distances from the edge of a circle of radius 50 centered in a 00x00 image. A grey value of 55 (white) represents a positive distance, a grey value of 0 (black) represents a negative distance and a grey value of 7 represents a distance of zero. a) is the true distance map for a D circle. b) is the distance map approximated from a binary circle using the chessboard distance and c) is the distance map approximated from the central-point distance method. Figure 5 presents images rendered from various distance maps estimated from a binary representation of a sphere of radius 0 voxels. The distance map for the images were calculated using the cityblock distance, the Euclidean distance, the central-point distance, and the central-point distance smoothed with a 5x5x5 box averaging filter. The image generated from the smoothed central-point distance estimator has a relatively smooth surface that represents the original data reasonably well. Conclusions The ability to represent surfaces accurately in volume graphics opens up many research directions in volume rendering, haptics, and physics based modeling for applications such as surgical simulation which require a volumetric object representation. Using a distance map representation allows accurate reconstruction of object surfaces. However creating a distance map requires an estimate of the object surface. For binary objects, the accuracy of the distance map is limited

a) b) c) d) e) f) Figure 4: Errors in distance maps estimated from a binary circle using: a) chessboard distance; b) cityblock distance; c) Euclidean distance; d) marching-cubes edge distance; e) central-point distance; and f)central point distance smoothed with a 5x5 box averaging filter. The error images were calculated by subtracting the true distance from the estimated distance and linearly scaling and centering the error so that zero error corresponds to a grey value of 7, and positive errors are brighter and negative errors are darker than 7. The city block and chessboard errors were significantly larger and were scaled here by a factor of.75. The other errors were scaled here by a factor of 5. a) b) by the best available estimate of the original surface. Most existing techniques and all of the techniques analyzed above use local filtering methods to estimate surfaces from binary data. However, especially when surfaces are at shallow angles to the sampling grid, or when the data sampling is not isometric, local filters give unsatisfactory surface estimates. In [], a new method is presented that uses a more global approaches to surface estimation by fitting an elastic net over the binary surface that relaxes to smooth out the shape of the surface but is constrained to adhere to the original binary segmentation. This method provides much better results than the distance metrics that have been described in this working paper. References [] S. Gibson. Constrained elastic Surface Nets: generating smooth surfaces from binary segmented data. In submitted to Medical Image Computation and Computer Assisted Surgery, 998, pages proceedings, MICCAI 98, 998. [] S. Gibson. Using distance maps for accurate surface representation in sampled volumes. In submitted to IEEE Visualizaiton, 998, pagesproceedings, Visualization 98, 998. [] K. Hohne, M. Bomans, A. Pommert, M. Riemer, C. Schiers, U. Tiede, and G. Wiebecke. d visualization of tomographic volume data using the generalized voxel model. The Visual Computer, 6():8 6, February 990. [4] W. Lorensen and H. Cline. Marching cubes: a high resolution d surface construction algorithm. In Computer Graphics Proceedings, Annual Conference Series, Proceedings of SIGGRAPH 87, pages 6 69. ACM SIGGRAPH, 989. [5] J. Russ. The Image Processing Handbook. CRC Press, Boca Raton, FL, 99. c) d) Figure 5: Volume rendered images shaded using central differences applied to distance maps estimated from a binary sampled sphere of radius 0 voxels. The distance estimation methods were: top left, city block distance; top right, Euclidean distance; bottom left, central point distance; and bottom right, the central point distance map smoothed with a 5x5x5 box averaging filter. The last method produces acceptable shading for a 0 voxel radius binary sphere.