Skip to topic
|
Skip to bottom
Jump:
TModeling
TModeling Web
TModeling Web Home
Changes
Notify
Index
Search
Webs
BioGeometry
Main
TModeling
TWiki
Edit
Attach
Printable
TModeling.FilteringDemo
r1.1 - 30 Dec 2008 - 14:59 - Main.guest
topic end
Start of topic |
Skip to actions
---+++Filtering and Binning with spfilter _Shawn Brown will put some information here about this demo. Until he does: What this program (spfilter) does is to average the points out into horizontal planes. Then we can connect them into a simplified streaming mesh that is much cleaner than a mesh of the original data._ As you can see below in these screenshots of the Ottawa data, spfilter, combined with a few other programs, is very effective at reducing noise and cleaning up the picture. <img src="%ATTACHURL%/beforev2.bmp" width=516 height=401 alt="Before Filtering & reducing"/> <img src="%ATTACHURL%/filteredandreducedv2.bmp" width=516 height=401 alt="After Filtering & Reducing"/> ---------------------------- ---+++Usage _To run these programs yourself, copy these command lines into your Command Prompt window, substituting your own filename for original_file.spb._ =spfilter -i original_file.spb -o filtered_file.spb -ottawa -cellsize 1.0 1.0 1.0 -orig 0.0 0.0 0.0= The initialization of the spfilter program. Running this program will unfinalize the data, so it is necessary to run [[http://wwwx.cs.unc.edu/Research/compgeom/twiki/bin/view.cgi/TModeling/Spfinalize][spfinalize]] to refinalize the file. =spfinalize -i filtered_file.spb -o finalized_file.spb= The data is now refinalized. Next we run [[http://wwwx.cs.unc.edu/Research/compgeom/twiki/bin/view.cgi/TModeling/Spdelaunay2d][spdelaunay2d]] to create a delaunay triangulation mesh of the filtered and finalized data points. =spdelaunay2d -i finalized_file.spb -o triangulated_file.smb= We could view the finished mesh right now, but in order to speed up the program and make the finished product cleaner, we will compress the data using [[http://wwwx.cs.unc.edu/Research/compgeom/twiki/bin/view.cgi/TModeling/Smsimp][smsimp]] and [[http://wwwx.cs.unc.edu/Research/compgeom/twiki/bin/view.cgi/TModeling/Sm2sm][sm2sm]]. We decide to use 1% (0.01) of the original data, which we enact with the =-t= parameter: =smsimp -t 0.01 -m 16 -n 10000000 -i triangulated_file.smb -osmb -o simplified_file.smb= (This should take a relatively long time, depending on your computer and the file used) Then we convert the file: =sm2sm -i simplified_file.smb -o compressed_file.smc= Finally, we can view the finished file in [[http://wwwx.cs.unc.edu/Research/compgeom/twiki/bin/view.cgi/TModeling/Sm_viewer][sm_viewer]]: =sm_viewer -i compressed_file.smc= A close-up of the mesh we have just created: <img src="%ATTACHURL%/close-upoffinalizedmesh.bmp" width=516 height=401 alt="Filtered Mesh"/> -------------- For more information, go to [[http://wwwx.cs.unc.edu/Research/compgeom/twiki/bin/view.cgi/TModeling/StreamingModules#Streaming_Modules][spfilter]], or contact [[Main.ShawnDB][Shawn Brown]]. -- Main.ChristianStith - 01 Jul 2008
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
More topic actions
Revisions: | r1.1
|
Total page history
|
Backlinks
You are here:
TModeling
>
FilteringDemo
to top
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback