No BSD License  

Highlights from
surface2volume

4.8

4.8 | 5 ratings Rate this file 52 Downloads (last 30 days) File Size: 9.29 KB File ID: #8772
image thumbnail

surface2volume

by Daniel Guellmar

 

20 Oct 2005 (Updated 24 Oct 2005)

Convert a volume defined by a surface to a binary 3D block.

| Watch this File

File Information
Description

First the surface will be rasterized on the grid. Therefore it calculates the position of points which lie in the surface in a finer resolution as defined by the inputgrid. These points were then tranfered to the point it the inputgrid by using a simple indexing technique. One could also use dsearchn, but this takes to much computational time, however, it can avoid the need of an equidistant grid. After rasterizing the patches the background is fill using imfill. The start point is set to the lower left corner. Afterwards the data block will be inverted. The script tests if the datablock is fully filled and tries to repeat the task slice by slice.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
21 Aug 2006 Hyok Jeong

very very good.

27 Feb 2007 thevan S

Very good and help full

20 Oct 2008 Carlos Platero

I need 3D models

21 Oct 2008 Sebastian H

Amazing! Fast and reliable. Many, many thanks.

A hint: I had to change the outputFID from 0 to 1, Matlab 7.6 R2008a seems not to accept zero file identifiers for fprintf.

28 Nov 2008 nor ki

nice tool,
but it confuses x with y coordinates in line 172

15 Dec 2009 Alex Kararg

Given only the x,y,z coordinates of a surface S how does this function work?

07 Mar 2010 Steve

I would also like to know how to use it with data in (x,y,z) format. Can you please tell me?

Please login to add a comment or rating.
Updates
24 Oct 2005

There was a small error in the script, which turn the program to fail, if an input grid was given.

Tag Activity for this File
Tag Applied By Date/Time
reconstruction Daniel Guellmar 22 Oct 2008 08:03:32
surface Daniel Guellmar 22 Oct 2008 08:03:32
volume Daniel Guellmar 22 Oct 2008 08:03:32
image processing Daniel Guellmar 22 Oct 2008 08:03:32

Contact us at files@mathworks.com