[vtkusers] Please Help, Curved reformation example using example imageslicemapper
rahul indoria
rahulindoria5 at gmail.com
Sat Jul 6 14:54:03 EDT 2013
Hi,
I want to use the application of example (
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper) in
example (
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation)
but when i trying to modifying this, i am getting certain errors. I am
writing my modifying code(in curved reformation example), could you please
tell me the mistakes which i am doing in that. this code is the modified
code of curved reformation example using the code of image slice mapper.
* // Probe the volume with the extruded surface*
* vtkSmartPointer<vtkProbeFilter> sampleVolume =*
* vtkSmartPointer<vtkProbeFilter>::New();*
* // sampleVolume->SetInputConnection(1, imageReader->GetOutputPort());*
*
*
*#if VTK_MAJOR_VERSION <= 5*
* sampleVolume->SetInput(0, surface);*
* #else*
* sampleVolume->SetInputData(0, surface);*
*#endif*
*
*
*/**
* // Compute a simple window/level based on scalar range*
* vtkSmartPointer<vtkWindowLevelLookupTable> wlLut =*
* vtkSmartPointer<vtkWindowLevelLookupTable>::New();*
* double range = imageReader->GetOutput()->GetScalarRange()[1] -*
* imageReader->GetOutput()->GetScalarRange()[0];*
* double level = (imageReader->GetOutput()->GetScalarRange()[1] +*
* imageReader->GetOutput()->GetScalarRange()[0]) / 2.0;*
* wlLut->SetWindow(range);*
* wlLut->SetLevel(level);*
* */*
*
*
* //Reslicing *
* vtkSmartPointer<vtkImageResliceMapper> imageResliceMapper =
vtkSmartPointer<vtkImageResliceMapper>::New();*
*#if VTK_MAJOR_VERSION <= 5*
* imageResliceMapper->SetInputConnection(1, sampleVolume->GetOutputPort());
*
*#else*
* imageResliceMapper->SetInputData(sampleVolume->GetOutputPort());*
*#endif*
* *
* vtkSmartPointer<vtkImageSlice> imageSlice =
vtkSmartPointer<vtkImageSlice>::New();*
* imageSlice->SetMapper(imageResliceMapper);*
*
*
*/* // Create a mapper.*
* vtkSmartPointer<vtkDataSetMapper> mapper =*
* vtkSmartPointer<vtkDataSetMapper>::New();*
* mapper->SetInputConnection(sampleVolume->GetOutputPort());*
* mapper->SetLookupTable(wlLut);*
* mapper->SetScalarRange(0, 255);*
* *
* // Create An Actor*
* vtkSmartPointer<vtkActor> actor =*
* vtkSmartPointer<vtkActor>::New();*
* actor->SetMapper(mapper);*
**/*
*
*
* // Create a renderer,*
* vtkSmartPointer<vtkRenderer> renderer =*
* vtkSmartPointer<vtkRenderer>::New();*
*
*
* // Create render window*
* vtkSmartPointer<vtkRenderWindow> renderWindow =*
* vtkSmartPointer<vtkRenderWindow>::New();*
* renderWindow->AddRenderer(renderer);*
*
*
*
*
* //Create an interactor*
* vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =*
* vtkSmartPointer<vtkRenderWindowInteractor>::New();*
* renderWindowInteractor->SetRenderWindow(renderWindow);*
* *
* // Add the actors to the scene*
* renderer->AddActor(imageSlice);*
* renderer->SetBackground(.2, .3, .4);*
* *
* // Set the camera for viewing medical images*
* renderer->GetActiveCamera()->SetViewUp(0,0,1);*
* renderer->GetActiveCamera()->SetPosition(0,0,0);*
* renderer->GetActiveCamera()->SetFocalPoint(0,1,0);*
* renderer->ResetCamera();*
* *
* // Render and interact*
* renderWindow->Render();*
* renderWindowInteractor->Start();*
* *
* imageReader->Delete();*
* return EXIT_SUCCESS;*
On Sat, Jul 6, 2013 at 6:00 PM, <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: Is it possible to make an image slice of unstructured
> grid? (Ruff)
> 2. Reading a vti file with vtkStreamingDemandDrivenPipeline
> (Brugger, Eric)
> 3. Re: Vtk 6.0 dotnet (Serge Lalonde)
> 4. Re: Vtk 6.0 dotnet (Serge Lalonde)
> 5. Re: Vtk 6.0 dotnet (David Gobbi)
> 6. Re: Memory management : pointer on VTK object (Alex Malyushytskyy)
> 7. Re: Vtk 6.0 dotnet (Alex Malyushytskyy)
> 8. Re: Contouring Irregular Points (yoshiyuki yamamoto)
> 9. Re: A Simple Question on vtkContourFilter (Bill Lorensen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 5 Jul 2013 09:02:16 -0700 (PDT)
> From: Ruff <albin.nilsson at gmail.com>
> Subject: Re: [vtkusers] Is it possible to make an image slice of
> unstructured grid?
> To: vtkusers at vtk.org
> Message-ID: <1373040136371-5721800.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Found something that works in taking my structured points as vtkImageData,
> which can be used as input in vtkSmartVolumeMapper.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Is-it-possible-to-make-an-image-slice-of-unstructured-grid-tp5721777p5721800.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 5 Jul 2013 17:48:09 +0000
> From: "Brugger, Eric" <brugger1 at llnl.gov>
> Subject: [vtkusers] Reading a vti file with
> vtkStreamingDemandDrivenPipeline
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <
> CC3D28099A24A34FA98E3F8E2B8944CC5475F2A8 at PRDEXMBX-04.the-lab.llnl.gov>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> I have a vti file with an image that is a portion of the entire extent
> (e.g.
>
> ImageData WholeExtent="0 532 0 532 0 0"
>
> and
>
> Piece Extent="0 266 0 266 0 0"
>
> When I read in the image it gives me an array that is 532 x 532 with a
> piece that is 266 x 266 that is filled in.
>
> How do I have the reader only return an array that is 266 x 266?
>
> I tried using the vtkStreamingDemandDrivenPipeline to do this with no luck.
>
> Thanks,
>
> Eric
>
> Here is the code I am using:
>
> *********************** START CODE FRAGMENT ********************
>
> vtkXMLImageDataReader *reader = vtkXMLImageDataReader::New();
> reader->SetFileName("image.vti");
>
> vtkInformation *outInfo = reader->GetExecutive()->GetOutputInformation(0);
>
> int ext[6];
> ext[0] = 0; ext[1] = 266; ext[2] = 0; ext[3] = 266; ext[4] = 0; ext[5] = 0;
>
> outInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), ext, 6);
> outInfo->Set(vtkStreamingDemandDrivenPipeline::EXACT_EXTENT(), 1);
>
> reader->Update();
>
> dataset = reader->GetOutput();
>
> *********************** END CODE FRAGMENT ********************
>
> Here is the image file without the data:
>
> <VTKFile type="ImageData" version="0.1" byte_order="LittleEndian">
> <ImageData WholeExtent="0 532 0 532 0 0" Origin="0 0 0" Spacing="1 1 1">
> <Piece Extent="0 266 0 266 0 0">
> <CellData Scalars="PNGImage">
> <DataArray type="UInt8" Name="PNGImage" NumberOfComponents="4"
> format="appended" RangeMin="254" RangeMax="487.94364429" offset="0" />
> </CellData>
> </Piece>
> </ImageData>
> <AppendedData encoding="raw">
> ********** THE IMAGE DATA ********
> </AppendedData>
> </VTKFile>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130705/99a672b2/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Fri, 05 Jul 2013 14:27:07 -0400
> From: Serge Lalonde <serge at infolytica.com>
> Subject: Re: [vtkusers] Vtk 6.0 dotnet
> To: VTK Users <vtkusers at vtk.org>
> Message-ID: <51D70FFB.3040104 at infolytica.com>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130705/5b37cc47/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Fri, 05 Jul 2013 15:19:30 -0400
> From: Serge Lalonde <serge at infolytica.com>
> Subject: Re: [vtkusers] Vtk 6.0 dotnet
> To: Domenico Quaranta <n40.analysis at gmail.com>, VTK Users
> <vtkusers at vtk.org>
> Message-ID: <51D71C42.9070600 at infolytica.com>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130705/2f091135/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Fri, 5 Jul 2013 13:54:21 -0600
> From: David Gobbi <david.gobbi at gmail.com>
> Subject: Re: [vtkusers] Vtk 6.0 dotnet
> To: VTK Users <vtkusers at vtk.org>
> Message-ID:
> <CANwS1=Fzd0u_-Wj0TNPZf5psguMvz+0rreaU=
> Udrx8BzBQrSGw at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I'll throw in my two cents here, not specifically about ActiViz but
> about Kickstarter in general.
>
> The average pledge amount is $70, with most backers giving $25 and a
> few especially generous backers giving much more. So a $10000 project
> should only require around 150 backers. That's not a huge number,
> considering that the VTK community has well over 10x that many
> members. So the questions are 1) how to reach the community, since
> most community members don't read the vtkusers list on a regular basis,
> and 2) what kind of VTK Kickstarter projects would get widespread
> participation.
>
> I suspect that VTK book projects would find a lot of backers, and most
> people would be satisfied with a pdf rather than a hardcopy.
>
> - David
>
> On Fri, Jul 5, 2013 at 1:19 PM, Serge Lalonde <serge at infolytica.com>
> wrote:
> > Hi Nico,
> >
> > Here's the link:
> >
> http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510
> >
> > Note: Please reply to the list, not directly to me, so that others can
> > benefit.
> >
> > On 7/5/2013 2:58 PM, Domenico Quaranta wrote:
> >
> > Serge,
> > please provide the link
> > I'm very interested, on behalf of the consultancy company I work for.
> > I'm developing the software StructLife, which uses VTK (see
> > www.structcode.com).and currently I'm using Activiz for the .net
> wrapper.
> >
> > Nico
> >
> >
> > 2013/7/5 Serge Lalonde <serge at infolytica.com>
> >>
> >> Hi Nico,
> >>
> >> I replied to the list for everyone's benefit.
> >>
> >> Click on the KickStarter link to get details. Basically people pledge
> >> whatever amounts they can. If enough money is pledged, the people who
> >> pledged are charged the money they promised (typically on a credit
> card) and
> >> the project gets done. If the funding goal is not met, no one is charged
> >> anything and the project is cancelled.
> >>
> >> BTW, I'm Serge, not Dave. I just pledged for the project. Dave's contact
> >> info is in the KickStarter project page (the "Contact me" link on the
> >> right).
> >>
> >>
> >> On 7/5/2013 12:48 PM, Domenico Quaranta wrote:
> >>
> >> Dave,
> >> how does this thing work?
> >> Is it a free donation? Is it a fixed prize? What would the rules be?
> >>
> >> Nico
> >>
> >>
> >> 2013/7/5 Serge Lalonde <serge at infolytica.com>
> >>>
> >>> David Cole started a KickStarter project to get enough money to fund
> the
> >>> development of the updated .NET wrappers.
> >>>
> >>>
> http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510?ref=email
> >>>
> >>> Unfortunately, the funding goal was far from being reached. It's too
> bad
> >>> since a lot of people ask about it but few were willing to "put their
> money
> >>> where their mouth is" so to speak. Maybe if he tries again, this time
> more
> >>> people will pledge and it will get done. I for one would love to have
> the
> >>> .NET wrappers updated and I'm willing to pay for part of it if
> necessary.
> >>>
> >>> On 7/4/2013 4:00 PM, David E DeMarle wrote:
> >>>>
> >>>> 5.8
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Powered by www.kitware.com
> >>>>
> >>>> Visit other Kitware open-source projects at
> >>>> http://www.kitware.com/opensource/opensource.html
> >>>>
> >>>> Please keep messages on-topic and check the VTK FAQ at:
> >>>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>>
> >>>> Follow this link to subscribe/unsubscribe:
> >>>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>> --
> >>> Signature www.infolytica.com <http:://www.infolytica.com>
> >>> 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> >>> (514) 849-8752 x236, Fax: (514) 849-4239
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> >>> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >>
> >> --
> >> www.infolytica.com
> >> 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> >> (514) 849-8752 x236, Fax: (514) 849-4239
> >
> >
> >
> > --
> > www.infolytica.com
> > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> > (514) 849-8752 x236, Fax: (514) 849-4239
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 5 Jul 2013 15:01:19 -0700
> From: Alex Malyushytskyy <alexmalvtk at gmail.com>
> Subject: Re: [vtkusers] Memory management : pointer on VTK object
> To: Malsoaz James <jmalsoaz at yahoo.fr>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <
> CAHR9pJ034QNjjQOEgWsokOVT00M+QoQLAjf6r7Fres6+9y3U3A at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Try to add
> SetSource(NULL);
> calls after you register polydata
>
> polydata->Register(NULL);
> polydata->SetSource(NULL);
> .....
> output->Register(NULL);
> output->SetSource(NULL);
>
> Another source of extra memory usage may be memory granularity,
> If you say that DeepCopy helps it means deleting/allocationg memory at the
> same and bugger chunks helps to avoid granularity.
> In this case nothing you can do.
>
>
> In any case I would suggest to get
>
> vtkTransformPolyDataFilter * trFilter = vtkTransformPolyDataFilter::New();
>
> and
> trFilter->Delete();
> out of loop.
>
>
> Regards,
> Alex
>
>
>
> On Thu, Jul 4, 2013 at 12:33 AM, Malsoaz James <jmalsoaz at yahoo.fr> wrote:
>
> > Hi,
> >
> > I'm experiencing troubles when copying pointers of VTK object.
> >
> > Let's say I want to apply transformation to a polydata recursively like
> > this:
> >
> > //Read STL
> > vtkSTLReader * reader = vtkSTLReader::New();
> > reader->SetFileName("1.stl");
> > reader->Update();
> >
> > vtkPolyData * polydata = reader->GetOutput();
> > polydata->Register(NULL);
> > reader->Delete();
> >
> > vtkTransform * tr = vtkTransform::New();
> > tr->Translate(5, 10, 1);
> > tr->Update();
> >
> > for(int i = 0 ; i < 1000 ; ++i)
> > {
> > std::cout << i << std::endl;
> > vtkTransformPolyDataFilter * trFilter =
> > vtkTransformPolyDataFilter::New();
> > trFilter->SetInput(polydata);
> > trFilter->SetTransform(tr);
> > trFilter->Update();
> >
> > vtkPolyData * output = trFilter->GetOutput();
> > output->Register(NULL);
> > trFilter->Delete();
> >
> > polydata->Delete();
> > polydata = output;
> > }
> > tr->Delete();
> > polydata->Delete();
> >
> > This is working fine and I have no VTK leaks. Unfortunately, I'm noticing
> > that memory for my program increases instead of remaining constant.
> > What's wrong with theses few lines?
> >
> > By the way, using DeepCopy to save output data is working:
> > polydata = vtkPolyData::New();
> > polydata->DeepCopy(output);
> > output->Delete();
> > But I would like to avoid to deep copy data when I only need to add a
> > reference to the pointer. I also would like to avoid the use of
> > vtkSmartPointer.
> >
> > Thank you for your help
> > Best.
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK 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/20130705/4107fe77/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Fri, 5 Jul 2013 15:29:43 -0700
> From: Alex Malyushytskyy <alexmalvtk at gmail.com>
> Subject: Re: [vtkusers] Vtk 6.0 dotnet
> To: VTK Users <vtkusers at vtk.org>
> Message-ID:
> <
> CAHR9pJ3YCXyPHLhN9zax5LNQUn2-c8Q0NthD0KxYy-Wfszf3jQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I would not write this. if I did not see offense in one of the posts above
> targeted people who did not "put their money where their mouth is" .
> You can't use number of people in vtk community as a total number of people
> interested in ActiViz.
> For example I do not care about anything beside C++. I know multiple people
> who do not care what happens on Windows.
>
> Also there is a huge difference between liking a feature and agree to
> finance the development.
> Also as for me I would trust more in the results of free development than
> in results of the projects developed using such financing.
> Assume you succeeded to collect money, and it was even enough to produce
> results you wanted which is not realistic in the area I live.
> What is going to happen when new vtk version is released and ActiViz need
> support?
> The code will need to be supported.
> Are you going to ask for a new donations every time?
> You have to realize that such questions are too serious to ignore and
> there is no point to offend people who decided not to put their money in
> the project you support.
>
> Regards,
> Alex
>
>
>
> On Fri, Jul 5, 2013 at 12:54 PM, David Gobbi <david.gobbi at gmail.com>
> wrote:
>
> > I'll throw in my two cents here, not specifically about ActiViz but
> > about Kickstarter in general.
> >
> > The average pledge amount is $70, with most backers giving $25 and a
> > few especially generous backers giving much more. So a $10000 project
> > should only require around 150 backers. That's not a huge number,
> > considering that the VTK community has well over 10x that many
> > members. So the questions are 1) how to reach the community, since
> > most community members don't read the vtkusers list on a regular basis,
> > and 2) what kind of VTK Kickstarter projects would get widespread
> > participation.
> >
> > I suspect that VTK book projects would find a lot of backers, and most
> > people would be satisfied with a pdf rather than a hardcopy.
> >
> > - David
> >
> > On Fri, Jul 5, 2013 at 1:19 PM, Serge Lalonde <serge at infolytica.com>
> > wrote:
> > > Hi Nico,
> > >
> > > Here's the link:
> > >
> >
> http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510
> > >
> > > Note: Please reply to the list, not directly to me, so that others can
> > > benefit.
> > >
> > > On 7/5/2013 2:58 PM, Domenico Quaranta wrote:
> > >
> > > Serge,
> > > please provide the link
> > > I'm very interested, on behalf of the consultancy company I work for.
> > > I'm developing the software StructLife, which uses VTK (see
> > > www.structcode.com).and currently I'm using Activiz for the .net
> > wrapper.
> > >
> > > Nico
> > >
> > >
> > > 2013/7/5 Serge Lalonde <serge at infolytica.com>
> > >>
> > >> Hi Nico,
> > >>
> > >> I replied to the list for everyone's benefit.
> > >>
> > >> Click on the KickStarter link to get details. Basically people pledge
> > >> whatever amounts they can. If enough money is pledged, the people who
> > >> pledged are charged the money they promised (typically on a credit
> > card) and
> > >> the project gets done. If the funding goal is not met, no one is
> charged
> > >> anything and the project is cancelled.
> > >>
> > >> BTW, I'm Serge, not Dave. I just pledged for the project. Dave's
> contact
> > >> info is in the KickStarter project page (the "Contact me" link on the
> > >> right).
> > >>
> > >>
> > >> On 7/5/2013 12:48 PM, Domenico Quaranta wrote:
> > >>
> > >> Dave,
> > >> how does this thing work?
> > >> Is it a free donation? Is it a fixed prize? What would the rules be?
> > >>
> > >> Nico
> > >>
> > >>
> > >> 2013/7/5 Serge Lalonde <serge at infolytica.com>
> > >>>
> > >>> David Cole started a KickStarter project to get enough money to fund
> > the
> > >>> development of the updated .NET wrappers.
> > >>>
> > >>>
> >
> http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510?ref=email
> > >>>
> > >>> Unfortunately, the funding goal was far from being reached. It's too
> > bad
> > >>> since a lot of people ask about it but few were willing to "put their
> > money
> > >>> where their mouth is" so to speak. Maybe if he tries again, this time
> > more
> > >>> people will pledge and it will get done. I for one would love to have
> > the
> > >>> .NET wrappers updated and I'm willing to pay for part of it if
> > necessary.
> > >>>
> > >>> On 7/4/2013 4:00 PM, David E DeMarle wrote:
> > >>>>
> > >>>> 5.8
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> Powered by www.kitware.com
> > >>>>
> > >>>> Visit other Kitware open-source projects at
> > >>>> http://www.kitware.com/opensource/opensource.html
> > >>>>
> > >>>> Please keep messages on-topic and check the VTK FAQ at:
> > >>>> http://www.vtk.org/Wiki/VTK_FAQ
> > >>>>
> > >>>> Follow this link to subscribe/unsubscribe:
> > >>>> http://www.vtk.org/mailman/listinfo/vtkusers
> > >>>
> > >>>
> > >>> --
> > >>> Signature www.infolytica.com <http:://www.infolytica.com>
> > >>> 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> > >>> (514) 849-8752 x236, Fax: (514) 849-4239
> > >>> _______________________________________________
> > >>> Powered by www.kitware.com
> > >>>
> > >>> Visit other Kitware open-source projects at
> > >>> http://www.kitware.com/opensource/opensource.html
> > >>>
> > >>> Please keep messages on-topic and check the VTK FAQ at:
> > >>> http://www.vtk.org/Wiki/VTK_FAQ
> > >>>
> > >>> Follow this link to subscribe/unsubscribe:
> > >>> http://www.vtk.org/mailman/listinfo/vtkusers
> > >>
> > >>
> > >>
> > >> --
> > >> www.infolytica.com
> > >> 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> > >> (514) 849-8752 x236, Fax: (514) 849-4239
> > >
> > >
> > >
> > > --
> > > www.infolytica.com
> > > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> > > (514) 849-8752 x236, Fax: (514) 849-4239
> > >
> > > _______________________________________________
> > > Powered by www.kitware.com
> > >
> > > Visit other Kitware open-source projects at
> > > http://www.kitware.com/opensource/opensource.html
> > >
> > > Please keep messages on-topic and check the VTK FAQ at:
> > > http://www.vtk.org/Wiki/VTK_FAQ
> > >
> > > Follow this link to subscribe/unsubscribe:
> > > http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK 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/20130705/82e383e6/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 8
> Date: Sat, 6 Jul 2013 11:51:48 +0900
> From: yoshiyuki yamamoto <y_yamamoto at aitech.ac.jp>
> Subject: Re: [vtkusers] Contouring Irregular Points
> To: Bill Lorensen <bill.lorensen at gmail.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Message-ID:
> <CABX0_CLH65DaPqGt1zZaGpXfL6J9D=
> pD5SpUkdoRP1sSHM6siQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-2022-jp"
>
> Thank you Bill.
> The error was solved as shown in attached image by your instruction.
>
>
> 2013/7/5 Bill Lorensen <bill.lorensen at gmail.com>
>
> > You are probably building against a VTK5 that has qt enabled. try adding
> QVTK
> > and qt libraries to the CMakeLists.txt line:
> target_link_libraries(TriangulateTerrainMap
> > vtkHybrid)
> >
> > target_link_libraries(TriangulateTerrainMap vtkHybrid QVTK
> ${QT_LIBRARIES}
> > )
> >
> >
> >
> > On Thu, Jul 4, 2013 at 9:40 PM, yoshiyuki yamamoto <
> > y_yamamoto at aitech.ac.jp> wrote:
> >
> >> Thank you for your information.
> >>
> >> TriangulateTerrainMap was downloaded from below page you wrote.
> >> http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/TriangulateTerrainMap
> >>
> >> But, I got cmake error as shown below.
> >> Could you tell me how to solve the error?
> >>
> >> y2-6:build yamamoto$ cmake ..
> >> -- The C compiler identification is GNU 4.2.1
> >> -- The CXX compiler identification is Clang 4.2.0
> >> -- Checking whether C compiler has -isysroot
> >> -- Checking whether C compiler has -isysroot - yes
> >> -- Checking whether C compiler supports OSX deployment target flag
> >> -- Checking whether C compiler supports OSX deployment target flag - yes
> >> -- Check for working C compiler: /usr/bin/gcc
> >> -- Check for working C compiler: /usr/bin/gcc -- works
> >> -- Detecting C compiler ABI info
> >> -- Detecting C compiler ABI info - done
> >> -- Check for working CXX compiler: /usr/bin/c++
> >> -- Check for working CXX compiler: /usr/bin/c++ -- works
> >> -- Detecting CXX compiler ABI info
> >> -- Detecting CXX compiler ABI info - done
> >> -- Configuring done
> >> -- Generating done
> >> -- Build files have been written to:
> >> /Users/yamamoto/Downloads/TriangulateTerrainMap/build
> >> y2-6:build yamamoto$ make
> >> Scanning dependencies of target TriangulateTerrainMap
> >> [100%] Building CXX object
> >> CMakeFiles/TriangulateTerrainMap.dir/TriangulateTerrainMap.cxx.o
> >> In file included from
> >>
> /Users/yamamoto/Downloads/TriangulateTerrainMap/TriangulateTerrainMap.cxx:1:
> >> In file included from /opt/local/include/vtk-5.10/vtkVersion.h:29:
> >> In file included from /opt/local/include/vtk-5.10/vtkObject.h:41:
> >> In file included from /opt/local/include/vtk-5.10/vtkObjectBase.h:43:
> >> In file included from /opt/local/include/vtk-5.10/vtkIndent.h:24:
> >> In file included from
> /opt/local/include/vtk-5.10/vtkSystemIncludes.h:40:
> >> In file included from /opt/local/include/vtk-5.10/vtkIOStream.h:108:
> >> In file included from /usr/include/c++/4.2.1/backward/strstream:51:
> >> /usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: This
> >> file
> >> includes at least one deprecated or antiquated header. Please
> >> consider
> >> using one of the 32 headers found in section 17.4.1.2 of the C++
> >> standard.
> >> Examples include substituting the <X> header for the <X.h> header
> >> for C++
> >> includes, or <iostream> instead of the deprecated header
> >> <iostream.h>. To
> >> disable this warning use -Wno-deprecated. [-W#warnings]
> >> #warning This file includes at least one deprecated or antiquated
> header.
> >> \
> >> ^
> >> 1 warning generated.
> >> make[2]: *** No rule to make target `/opt/local/lib/libQtGui.dylib',
> >> needed by
> `TriangulateTerrainMap.app/Contents/MacOS/TriangulateTerrainMap'.
> >> Stop.
> >> make[1]: *** [CMakeFiles/TriangulateTerrainMap.dir/all] Error 2
> >> make: *** [all] Error 2
> >>
> >>
> >>
> >> 2013/7/5 Bill Lorensen <bill.lorensen at gmail.com>
> >>
> >>> Look at this example and substitute your own points:
> >>> http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/TriangulateTerrainMap
> >>>
> >>>
> >>>
> >>> On Thu, Jul 4, 2013 at 8:06 AM, Michael Jackson <
> >>> mike.jackson at bluequartz.net> wrote:
> >>>
> >>>> Can VTK create a contour plot of "irregular" points? What I mean is
> >>>> that I have a bunch of X,Y + intensity points but the X,Y points are
> NOT on
> >>>> a regular grid they are just "Point Data". A collaborator of mine
> uses IDL
> >>>> to produce some plots from this data and I would like to use VTK for
> my own
> >>>> projects.
> >>>>
> >>>> Thanks for any help.
> >>>> ___________________________________________________________
> >>>> Mike Jackson Principal Software Engineer
> >>>> BlueQuartz Software Dayton, Ohio
> >>>> mike.jackson at bluequartz.net www.bluequartz.net
> >>>>
> >>>> _______________________________________________
> >>>> Powered by www.kitware.com
> >>>>
> >>>> Visit other Kitware open-source projects at
> >>>> http://www.kitware.com/opensource/opensource.html
> >>>>
> >>>> Please keep messages on-topic and check the VTK FAQ at:
> >>>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>>
> >>>> Follow this link to subscribe/unsubscribe:
> >>>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Unpaid intern in BillsBasement at noware dot com
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> >>> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>
> >>
> >> --
> >> ------------------------------------------------------------
> >> ?????????????????????
> >> ????
> >> ?470-0392 ????????????1247
> >> TEL:(0565)48-8121?????FAX:(0565)48-0030????
> >> HP: http://www.ait.ac.jp/index.html
> >> Mail: y_yamamoto at aitech.ac.jp
> >> ------------------------------------------------------------
> >> School of Civil Engineering, Department of Urban Environment,
> >> Faculty of Engineering,
> >> Aichi Institute of Technology.
> >> Yoshiyuki Yamamoto
> >> 1247 Yachikusa, Yakusa Cho, Toyota, Aichi 470-0392 JAPAN
> >> TEL:+81-565-48-8121 FAX:+81-565-48-0030
> >> HP: http://www.ait.ac.jp/index.html
> >> Mail: y_yamamoto at aitech.ac.jp
> >>
> >
> >
> >
> > --
> > Unpaid intern in BillsBasement at noware dot com
> >
>
>
>
> --
> ------------------------------------------------------------
> ?????????????????????
> ????
> ?470-0392 ????????????1247
> TEL:(0565)48-8121?????FAX:(0565)48-0030????
> HP: http://www.ait.ac.jp/index.html
> Mail: y_yamamoto at aitech.ac.jp
> ------------------------------------------------------------
> School of Civil Engineering, Department of Urban Environment,
> Faculty of Engineering,
> Aichi Institute of Technology.
> Yoshiyuki Yamamoto
> 1247 Yachikusa, Yakusa Cho, Toyota, Aichi 470-0392 JAPAN
> TEL:+81-565-48-8121 FAX:+81-565-48-0030
> HP: http://www.ait.ac.jp/index.html
> Mail: y_yamamoto at aitech.ac.jp
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130706/e78186a0/attachment-0001.htm
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: ????????? 2013-07-06 11.51.14.png
> Type: image/png
> Size: 28046 bytes
> Desc: not available
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130706/e78186a0/attachment-0001.png
> >
>
> ------------------------------
>
> Message: 9
> Date: Sat, 6 Jul 2013 08:05:55 -0400
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] A Simple Question on vtkContourFilter
> To: Hayden Smith <s_hayden_28 at yahoo.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <CADZJ4hPHaEvSiHVfd574-ibgaFZCZLyh=
> 9nakJSDSG-9+Sp9mQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> What is the range of your scalar data?
>
>
>
> On Fri, Jul 5, 2013 at 6:44 PM, Hayden Smith <s_hayden_28 at yahoo.com>
> wrote:
>
> > Hello,
> > I have attached two images: the first one using "skinExtractor
> > SetValue 0 127.5" and the second one "skinExtractor SetValue 0 255".
> Both
> > showing the very similar output. My question as binarization on image is
> > performed, how the threshold has been calculated as both values showing
> the
> > similar output.
> >
> > Thanks,
> >
> > Hayden.
> >
> >
> > ------------------------------
> > *From:* Bill Lorensen <bill.lorensen at gmail.com>
> > *To:* Hayden Smith <s_hayden_28 at yahoo.com>
> > *Cc:* "vtkusers at vtk.org" <vtkusers at vtk.org>
> > *Sent:* Thursday, July 4, 2013 6:04 AM
> >
> > *Subject:* Re: [vtkusers] A Simple Question on vtkContourFilter
> >
> > If your data is 8 bit data, then the effect is similar to thresholding.
> > Set the value to 127.5 and you will see an isosurface that has more
> > character.
> >
> >
> > On Wed, Jul 3, 2013 at 4:14 PM, Hayden Smith <s_hayden_28 at yahoo.com
> >wrote:
> >
> > Hello,
> > Thanks for the reply. But I need a little bit clarification. When I
> > use 'skinExtractor SetValue 0 255', it generates one iso-surface. Does it
> > threshold the image into a binary image?
> >
> > Thanks again.
> >
> > Hayden.
> >
> >
> >
> > ------------------------------
> > *From:* Bill Lorensen <bill.lorensen at gmail.com>
> > *To:* Hayden Smith <s_hayden_28 at yahoo.com>
> > *Cc:* "vtkusers at vtk.org" <vtkusers at vtk.org>
> > *Sent:* Tuesday, July 2, 2013 3:45 PM
> > *Subject:* Re: [vtkusers] A Simple Question on vtkContourFilter
> >
> > skinExtractor GenerateValues 4 0 255 will extract 4 isosurfaces
> > Value 0: 0
> > Value 1: 85
> > Value 2: 170
> > Value 3: 255
> >
> > where
> > skinExtractor SetValue 0 255
> > will extract 1 isosurface with value
> > 255
> >
> >
> >
> >
> > On Tue, Jul 2, 2013 at 4:17 PM, Hayden Smith <s_hayden_28 at yahoo.com
> >wrote:
> >
> > Hello,
> > I have a simple question on vtkContourFilter. What is the
> > difference between the following two pieces of code:
> >
> > vtkContourFilter skinExtractor
> > skinExtractor SetInput [v16
> GetOutput]
> > eval skinExtractor GenerateValues 4 0
> > 255
> > skinExtractor Update
> >
> >
> > vtkContourFilter skinExtractor
> > skinExtractor SetInput [v16 GetOutput]
> > skinExtractor SetValue 0 255
> > skinExtractor Update
> >
> >
> > If I use 'eval skinExtractor GenerateValues 4 0 255' in vtkContourFilter,
> > the reconstructed output is noisy whereas if I use 'skinExtractor
> SetValue
> > 0 255', the output is better and much clear. Could any one clarify me how
> > these two commands are making the difference in output?
> > Thanks in advance.
> >
> >
> > Hayden
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> >
> >
> > --
> > Unpaid intern in BillsBasement at noware dot com
> >
> >
> >
> >
> >
> > --
> > Unpaid intern in BillsBasement at noware dot com
> >
> >
> >
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130706/fc89452b/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 111, Issue 12
> *****************************************
>
--
*Best Regards
Rahul Indoria
Mobile No: +49-157-35652212*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130706/483d0fc7/attachment.htm>
More information about the vtkusers
mailing list