[vtkusers] vtkusers Digest, Vol 52, Issue 17

mostafa eslami a.m.eslami at gmail.com
Mon Aug 18 16:12:22 EDT 2008


Hello all,
I am new to vtk,
I work with opencv in area of face recognition.
at this time i need a 3d framework for object reconstruction ,rendering, and
recognition.
out of mathematics ,can I take benefit from vtk and where ?


Best regards.
Mostafa eslami baladeh(kourosh)


On 8/16/08, vtkusers-request at vtk.org <vtkusers-request at vtk.org> wrote:
>
> Send vtkusers mailing list submissions to
>        vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
>        vtkusers-request at vtk.org
>
> You can reach the person managing the list at
>        vtkusers-owner at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
>   1. Re: load simple volume example (.mhd format) (Kevin H. Hobbs)
>   2. Re: How to write discontinuous field data (Gerrick Bivins)
>   3. vtkImageReader2.cxx : FileLowerLeft default ? (oc-spam66)
>   4. Re: [vtk-developers] Can't compile VTK with Mangled Mesa
>      (Chris Kruszynski)
>   5. Re: Real-Time Soft Tissue Deformation (JohnMark)
>   6. Re: How to write discontinuous field data (Gerard Gorman)
>   7. How to find a clicked imageactor pixel (Sercani)
>   8. Re: How to find a clicked imageactor pixel (Mark Wyszomierski)
>   9. Re: How to find a clicked imageactor pixel (Sercani)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 15 Aug 2008 15:08:03 -0400
> From: "Kevin H. Hobbs" <hobbsk at ohiou.edu>
> Subject: Re: [vtkusers] load simple volume example (.mhd format)
> To: Oliver Klar <klar1 at gmx.de>
> Cc: vtkusers at vtk.org
> Message-ID: <1218827283.30278.1.camel at gargon.hooperlab>
> Content-Type: text/plain; charset="utf-8"
>
>
> On Thu, 2008-07-31 at 15:51 +0200, Oliver Klar wrote:
> > Hey,
> >
> > ? have a simple question. I want to load a .raw image and display it by
> the vtk raycaster(Volume rendering). My problem is, how to load the volume
> data. Which vtkReader should i use? I made myself a .mhd file but i can?t
> find a way to read this. Volume reader uses 2d slices as far as i know.
> > I short example would  be nice.
> > Thanks a lot!
>
> I happen to have this...
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: OSVolumeRender.cxx
> Type: text/x-c++src
> Size: 5566 bytes
> Desc: not available
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20080815/0f78f7c1/attachment-0001.cxx
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 189 bytes
> Desc: This is a digitally signed message part
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20080815/0f78f7c1/attachment-0001.pgp
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 15 Aug 2008 13:24:32 -0700 (PDT)
> From: Gerrick Bivins <gbivins at objectreservoir.com>
> Subject: Re: [vtkusers] How to write discontinuous field data
> To: vtkusers at vtk.org
> Message-ID: <19004953.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> I ran into this issue as well and went about implementing the
> "shrinkfilter"
> method described below.
> This solved my problem but I've found that my surface is now not "smooth".
> It looks as if normals are per polygon rather than per vertex. Is this an
> artifact of exploding the mesh connectivity or is there a filter I can
> apply
> to obtain better results. I've tried vtkSmoothPolyDataFilter but I don't
> quite understand the parameters so I was unable to get quality results.
> Thanks in advance for any advice here.
> Gerrick http://www.nabble.com/file/p19004953/badNormals.jpg
> http://www.nabble.com/file/p19004953/goodNormals.jpeg
>
>
> Serge Lalonde wrote:
> >
> > Hello,
> >
> > I'm using ParaView in order to evalutate the visualization capabilities
> > of VTK. In order to do a fair evaluation, I am exporting the
> > discontinuous scalar field data from our current application (a magnetic
> > FE field solver) to a .vtk file (using the ASCII simple legacy format
> > according to http://www.vtk.org/pdf/file-formats.pdf).
> >
> > The problem is that I can't seem to figure out how to write out the
> > discontinuous scalar field. I searched the help and the archives and
> > this isn't covered anywhere. There are references to "pulling your hair
> > out", and that it is supported, but it's not explained. Help!
> >
> > Here is my setup:
> > - Tetrahedral elements (hence the data set is an unstructured grid)
> > - The scalar field is discontinuous at the cell boundaries. This means
> > that my field stores a (possibly different) value for each point, based
> > on which cell is accessed.
> >
> > I tried generating the following file (abbreviated):
> >
> > # vtk DataFile Version 3.0
> > Export of the mesh and field data for the field.
> > ASCII
> > DATASET UNSTRUCTURED_GRID
> > POINTS 3196 double
> > <x y z values for all 3196 points here>
> > ...
> > CELLS 16528 82640
> > 4 <four 0-based indices into the points above to describe all the 16528
> > tetrahedra>
> > ...
> > CELL_TYPES 16528
> > 10 <repeated 16528 times because all elements are tetrahedra>
> > ...
> > CELL_DATA 16528
> > FIELD ScalarField 1
> > FieldNameHere 4 16528 double
> > <four field values to specify the field values at each point of the
> > tetrahedra for all 16528 tetrahedra>
> > ...
> >
> > When I open this file, it almost looks right except that ParaView
> > calculates the magnitude of the four values for each cell when I select
> > "FieldNameHere" and displays that. So I never see any field variation in
> > a cell. I suspect that I have to use POINT_DATA, but I am unclear on how
> > to specify multiple scalar values (one for each cell sharing that point).
> >
> > How can this be specified? Would I be better off using the XML file
> > format? Do I have to lose the connectivity of my mesh to get what I want
> > (i.e. repeat the same point N-times, where N is the number of times the
> > point is shared by a cell)?
> >
> > Thanks.
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-write-discontinuous-field-data-tp17916695p19004953.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 16 Aug 2008 00:51:51 +0200 (CEST)
> From: oc-spam66 <oc-spam66 at laposte.net>
> Subject: [vtkusers] vtkImageReader2.cxx : FileLowerLeft default ?
> To: vtkusers at vtk.org
> Message-ID: <30106535.1841021218840711168.JavaMail.www at wwinf8404>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I have a proposition :
>
> Could you change the default of "FileLowerLeft" in vtkImageReader2.cxx ?
> The default is currently "0" and I think it should be "1".
>
> Explanation :
>
> Consider a file containing a 3D structured points dataset of scalars (the
> file is the succession of scalar values S_i, i = 1...(Nx*Ny*Nz)). Suppose
> the file is created with the following order : x increases first, then y
> increases and then z increases.
>
> When I read this file with vtkImageReader, the data are arranged in the
> vtkDataArray with the following order : x increases first, then y DECREASES
> and then z increases.
>
> I finally found that it is necessary to use "FileLowerLeftOn()" in order to
> have the expected order for y. I think that the current situation (where x,z
> increase and y decreases) is a gotcha. So if there is no side effect, could
> you consider changing the default ? this may prevent others from falling in
> this gotcha.
>
> Regards,
>
> O.C.
>
> Cr?ez votre adresse ?lectronique prenom.nom at laposte.net
> 1 Go d'espace de stockage, anti-spam et anti-virus int?gr?s.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20080816/d0a0da72/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Sat, 16 Aug 2008 01:16:19 +0200
> From: Chris Kruszynski <Chris.Kruszynski at cwi.nl>
> Subject: Re: [vtkusers] [vtk-developers] Can't compile VTK with
>        Mangled Mesa
> To: VTK Developers <vtk-developers at vtk.org>
> Cc: vtkusers at vtk.org
> Message-ID: <48A60E43.7060805 at cwi.nl>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 14/08/2008 14:23, Berk Geveci wrote:
> > However, since we added offscreen rendering
> > support that directly uses the OpenGL drivers, mangled Mesa is not
> > really needed anymore.
> >
> >
> There might be a use case with an app running remotely on a cluster or
> some big machine, showing remote OpenGL graphics, but also performing
> some off-screen rendering, which would otherwise still be done across
> the network connection. Or am I overlooking something?
>
> - Chris
>
>
> ------------------------------
>
> Message: 5
> Date: Sat, 16 Aug 2008 09:58:40 +0800
> From: JohnMark <zhaojunxp at hotmail.com>
> Subject: Re: [vtkusers] Real-Time Soft Tissue Deformation
> To: Ryan Barr <ryan_barr_eac at hotmail.com>, "vtkusers at vtk.org"
>        <vtkusers at vtk.org>
> Message-ID: <BAY112-W2940F59FFE28C914EFD519AA6C0 at phx.gbl>
> Content-Type: text/plain; charset="gb2312"
>
> Hi, Ryan,
> try these class for deformation:
>    vtkWarpScalar
>    vtkWarpTo
> hope this could help you.
> Mark
> _________________________________________________________________
> ???????????????
>
> http://cnweb.search.live.com/video/results.aspx?q=%E5%8F%AF%E7%88%B1%E7%8C%AB%E5%92%AA&Form=MEVHAA
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20080816/86e327d0/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Sat, 16 Aug 2008 07:35:36 +0100
> From: Gerard Gorman <g.gorman at imperial.ac.uk>
> Subject: Re: [vtkusers] How to write discontinuous field data
> To: vtkusers at vtk.org
> Message-ID: <48A67538.4070208 at imperial.ac.uk>
> Content-Type: text/plain; charset=ISO-8859-1
>
> The approach we've taken is to create discontinuous points - add the
> point every times that it appears in an element. This way you end up
> with a node numbering the same as your scalar field node number which is
> what you want. This way the discontinuous field can be visualised exactly.
>
> Cheers
> Gerard
>
> Gerrick Bivins emailed the following on 15/08/08 21:24:
> > I ran into this issue as well and went about implementing the
> "shrinkfilter"
> > method described below.
> > This solved my problem but I've found that my surface is now not
> "smooth".
> > It looks as if normals are per polygon rather than per vertex. Is this an
> > artifact of exploding the mesh connectivity or is there a filter I can
> apply
> > to obtain better results. I've tried vtkSmoothPolyDataFilter but I don't
> > quite understand the parameters so I was unable to get quality results.
> > Thanks in advance for any advice here.
> > Gerrick http://www.nabble.com/file/p19004953/badNormals.jpg
> > http://www.nabble.com/file/p19004953/goodNormals.jpeg
> >
> >
> > Serge Lalonde wrote:
> >> Hello,
> >>
> >> I'm using ParaView in order to evalutate the visualization capabilities
> >> of VTK. In order to do a fair evaluation, I am exporting the
> >> discontinuous scalar field data from our current application (a magnetic
> >> FE field solver) to a .vtk file (using the ASCII simple legacy format
> >> according to http://www.vtk.org/pdf/file-formats.pdf).
> >>
> >> The problem is that I can't seem to figure out how to write out the
> >> discontinuous scalar field. I searched the help and the archives and
> >> this isn't covered anywhere. There are references to "pulling your hair
> >> out", and that it is supported, but it's not explained. Help!
> >>
> >> Here is my setup:
> >> - Tetrahedral elements (hence the data set is an unstructured grid)
> >> - The scalar field is discontinuous at the cell boundaries. This means
> >> that my field stores a (possibly different) value for each point, based
> >> on which cell is accessed.
> >>
> >> I tried generating the following file (abbreviated):
> >>
> >> # vtk DataFile Version 3.0
> >> Export of the mesh and field data for the field.
> >> ASCII
> >> DATASET UNSTRUCTURED_GRID
> >> POINTS 3196 double
> >> <x y z values for all 3196 points here>
> >> ...
> >> CELLS 16528 82640
> >> 4 <four 0-based indices into the points above to describe all the 16528
> >> tetrahedra>
> >> ...
> >> CELL_TYPES 16528
> >> 10 <repeated 16528 times because all elements are tetrahedra>
> >> ...
> >> CELL_DATA 16528
> >> FIELD ScalarField 1
> >> FieldNameHere 4 16528 double
> >> <four field values to specify the field values at each point of the
> >> tetrahedra for all 16528 tetrahedra>
> >> ...
> >>
> >> When I open this file, it almost looks right except that ParaView
> >> calculates the magnitude of the four values for each cell when I select
> >> "FieldNameHere" and displays that. So I never see any field variation in
> >> a cell. I suspect that I have to use POINT_DATA, but I am unclear on how
> >> to specify multiple scalar values (one for each cell sharing that
> point).
> >>
> >> How can this be specified? Would I be better off using the XML file
> >> format? Do I have to lose the connectivity of my mesh to get what I want
> >> (i.e. repeat the same point N-times, where N is the number of times the
> >> point is shared by a cell)?
> >>
> >> Thanks.
> >> _______________________________________________
> >> This is the private VTK discussion list.
> >> Please keep messages on-topic. Check the FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
>
>
>
> ------------------------------
>
> Message: 7
> Date: Sat, 16 Aug 2008 10:38:42 +0300
> From: "Sercani" <sercanimailgroups at gmail.com>
> Subject: [vtkusers] How to find a clicked imageactor pixel
> To: <vtkusers at vtk.org>
> Message-ID:
>
> <!&!AAAAAAAAAAAYAAAAAAAAANX/x59mztJIrnVbcN8rU9TCgAAAEAAAABhPrmTVsB1FpF8AZdVS97UBAAAAAA==@
> gmail.com>
>
> Content-Type: text/plain; charset="iso-8859-9"
>
> Hi everyone;
>
> How can I find the pixel(coordinates related to upper or lower left
> corner)of an vtkImageActor that I clicked on? I couldn't find such a method
> in picker classes.
>
> Thanks already.
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20080816/db284943/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 8
> Date: Sat, 16 Aug 2008 10:04:39 -0400
> From: "Mark Wyszomierski" <markww at gmail.com>
> Subject: Re: [vtkusers] How to find a clicked imageactor pixel
> To: Sercani <sercanimailgroups at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
>        <dfdfe01e0808160704w7a3ef881w1b60be88da4c0beb at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> This example might be similar to what you're trying to do:
>
> http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27
>
> Mark
>
>
> On Sat, Aug 16, 2008 at 3:38 AM, Sercani <sercanimailgroups at gmail.com
> >wrote:
>
> >  Hi everyone;
> >
> > How can I find the pixel(coordinates related to upper or lower left
> > corner)of an vtkImageActor that I clicked on? I couldn't find such a
> method
> > in picker classes?
> >
> > Thanks already?
> >
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20080816/2e0d2853/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 9
> Date: Sat, 16 Aug 2008 17:23:31 +0300
> From: "Sercani" <sercanimailgroups at gmail.com>
> Subject: Re: [vtkusers] How to find a clicked imageactor pixel
> To: "'Mark Wyszomierski'" <markww at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
>
> <!&!AAAAAAAAAAAYAAAAAAAAANX/x59mztJIrnVbcN8rU9TCgAAAEAAAAOGTo7hbcWRDsS0oxJzxWDEBAAAAAA==@
> gmail.com>
>
> Content-Type: text/plain; charset="iso-8859-9"
>
> Thanks a lot Mark, that's an illuminative and instructive sample, great
> job.
>
>
>
> From: Mark Wyszomierski [mailto:markww at gmail.com]
> Sent: Saturday, August 16, 2008 5:05 PM
> To: Sercani
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] How to find a clicked imageactor pixel
>
>
>
> This example might be similar to what you're trying to do:
>
> http://devsample.org/index.php?option=com_content
> <
> http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27
> > &task=view&id=48&Itemid=27
>
> Mark
>
>
>
> On Sat, Aug 16, 2008 at 3:38 AM, Sercani <sercanimailgroups at gmail.com>
> wrote:
>
> Hi everyone;
>
> How can I find the pixel(coordinates related to upper or lower left
> corner)of an vtkImageActor that I clicked on? I couldn't find such a method
> in picker classes.
>
> Thanks already.
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20080816/30e38c0d/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 52, Issue 17
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080819/b6b30b2a/attachment.htm>


More information about the vtkusers mailing list