[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] VTKImageReslice: slow performance.
From:       Andras Lasso <lasso () queensu ! ca>
Date:       2019-07-05 15:23:21
Message-ID: YTOPR0101MB129294C33865073B11235C5AD8F50 () YTOPR0101MB1292 ! CANPRD01 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

[Attachment #2 (text/plain)]

The mailing list will be shut down soon. Please continue the discussion on the forum \
on the topic that you have already created - \
https://discourse.vtk.org/t/vtkimagereslice-slow-performance/1281

Andras

From: vtkusers <vtkusers-bounces@vtk.org> On Behalf Of David Gobbi
Sent: Friday, July 5, 2019 11:12 AM
To: abhishek <abhishek@meddiff.com>
Cc: VTK Users <vtkusers@vtk.org>
Subject: Re: [vtkusers] VTKImageReslice: slow performance.

Hi Abhishek,

It's the Update() method is what actually executes the filter. GetOutput() is just a \
getter method that returns a pointer.

Can you provide a short code snippet so that we can see exactly how you are using \
vtkImageReslice?

  David

On Fri, Jul 5, 2019 at 3:55 AM abhishek \
<abhishek@meddiff.com<mailto:abhishek@meddiff.com>> wrote: Hello Group, I am having \
performance issues while extracting SAGGITAL/CORONAL planes using VTKImageReslice. \
Each call to VTKImageReslice->GetOutput() takes 5-7 ms.

The volume used has the following properties:
1. Dimensions: 512x512x297
2. Pixel spacing: 0.4x0.4x0.7
3. Scalar type: Unsigned Int16
4. Number of components: 1 (Monochrome).

System & Build environment:
1. Windows 7, 12GB RAM, i3 processor.
2. Visual studio 2013
2. VTK 7.1.1
3. WPF for UI

Are there any known considerations for making VTKImageReslice fast?


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:x="urn:schemas-microsoft-com:office:excel" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">The \
mailing list will be shut down soon. Please continue the discussion on the forum on \
the topic that you have already created - </span><a \
href="https://discourse.vtk.org/t/vtkimagereslice-slow-performance/1281">https://discourse.vtk.org/t/vtkimagereslice-slow-performance/1281</a><o:p></o:p></p>
 <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Andras<span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> vtkusers \
&lt;vtkusers-bounces@vtk.org&gt; <b>On Behalf Of </b>David Gobbi<br>
<b>Sent:</b> Friday, July 5, 2019 11:12 AM<br>
<b>To:</b> abhishek &lt;abhishek@meddiff.com&gt;<br>
<b>Cc:</b> VTK Users &lt;vtkusers@vtk.org&gt;<br>
<b>Subject:</b> Re: [vtkusers] VTKImageReslice: slow \
performance.<o:p></o:p></span></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">Hi Abhishek,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">It's the Update() method is what actually executes the filter. \
GetOutput() is just a getter method that returns a pointer.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Can you provide a short code snippet so that we can see exactly \
how you are using vtkImageReslice?<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; David<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Fri, Jul 5, 2019 at 3:55 AM abhishek &lt;<a \
href="mailto:abhishek@meddiff.com">abhishek@meddiff.com</a>&gt; wrote:<o:p></o:p></p> \
</div> <blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in \
0in 6.0pt;margin-left:4.8pt;margin-right:0in"> <p class="MsoNormal">Hello Group, I am \
having performance issues while extracting SAGGITAL/CORONAL<br> planes using \
VTKImageReslice. Each call to VTKImageReslice-&gt;GetOutput()<br> takes 5-7 ms.<br>
<br>
The volume used has the following properties:<br>
1. Dimensions: 512x512x297<br>
2. Pixel spacing: 0.4x0.4x0.7<br>
3. Scalar type: Unsigned Int16<br>
4. Number of components: 1 (Monochrome).<br>
<br>
System &amp; Build environment:<br>
1. Windows 7, 12GB RAM, i3 processor.<br>
2. Visual studio 2013<br>
2. VTK 7.1.1<br>
3. WPF for UI<br>
<br>
Are there any known considerations for making VTKImageReslice fast? <o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>



_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers

--===============1452748928==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic