<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hello,<br><br>&nbsp;&nbsp; Is there an efficient way (in terms of speed) to turn off the default sorting of labels by size and arrange them in a user-appropriate fashion ?<br><br>Emma<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Richard Beare &lt;richard.beare@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Emma Ryan &lt;eryanvtk@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> insight-users@itk.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, August 9, 2010 4:40:45 PM<br><b><span style="font-weight: bold;">Subject:</span></b>
 Re: [Insight-users] How to turn Off sorting by size in  RelabelComponentFilter<br></font><br>
The default labeling behavior provided in the<br>itk::ConnectedComponentImageFilter does this. If you are starting with<br>a binary image and want to label separate components then<br>ConnectedComponentImageFilter will produce labels in raster order. If<br>you already have a labelled image then different strategies might be<br>needed, depending on how it was produced and what the characteristics<br>are (i.e whether labelled regions touch.)<br><br>On Tue, Aug 10, 2010 at 8:45 AM, Emma Ryan &lt;<a ymailto="mailto:eryanvtk@yahoo.com" href="mailto:eryanvtk@yahoo.com">eryanvtk@yahoo.com</a>&gt; wrote:<br>&gt; Hello All,<br>&gt;<br>&gt; &nbsp;&nbsp; By default the itk::RelabelComponentImageFilter&nbsp; seems to be sorting the<br>&gt; labels by size. I would like the label to be number according to their<br>&gt; raster position. Is there a way to turn off the sorting ?<br>&gt;<br>&gt; Thank you,<br>&gt; Emma<br>&gt;<br>&gt;
 ________________________________<br>&gt; From: "<a ymailto="mailto:insight-users-request@itk.org" href="mailto:insight-users-request@itk.org">insight-users-request@itk.org</a>" &lt;<a ymailto="mailto:insight-users-request@itk.org" href="mailto:insight-users-request@itk.org">insight-users-request@itk.org</a>&gt;<br>&gt; To: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt; Sent: Mon, August 9, 2010 12:42:15 PM<br>&gt; Subject: Insight-users Digest, Vol 76, Issue 24<br>&gt;<br>&gt; Send Insight-users mailing list submissions to<br>&gt; &nbsp;&nbsp;&nbsp; <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt;<br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br><span>&gt; &nbsp;&nbsp;&nbsp; <a target="_blank"
 href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt; &nbsp;&nbsp;&nbsp; <a ymailto="mailto:insight-users-request@itk.org" href="mailto:insight-users-request@itk.org">insight-users-request@itk.org</a><br>&gt;<br>&gt; You can reach the person managing the list at<br>&gt; &nbsp;&nbsp;&nbsp; <a ymailto="mailto:insight-users-owner@itk.org" href="mailto:insight-users-owner@itk.org">insight-users-owner@itk.org</a><br>&gt;<br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of Insight-users digest..."<br>&gt;<br>&gt;<br>&gt; Today's Topics:<br>&gt;<br>&gt; &nbsp; 1. Tcon Agenda Posted (Tuesday 1pm EST) (Luis Ibanez)<br>&gt; &nbsp; 2. Re: Tcon Agenda Posted (Tuesday 1pm EST) (Bradley Lowekamp)<br>&gt; &nbsp; 3. Re: [Insight-developers] Tcon Agenda Posted&nbsp;&nbsp;&nbsp;
 (Tuesday 1pm EST)<br>&gt; &nbsp; &nbsp; &nbsp; (Arnaud GELAS)<br>&gt; &nbsp; 4. itk::BilateralImageFilter extremely slow (Oleksandr Dzyubak)<br>&gt; &nbsp; 5. Re: Problem with passing images to functions (habibbaluwala2010)<br>&gt;<br>&gt;<br>&gt; ----------------------------------------------------------------------<br>&gt;<br>&gt; Message: 1<br>&gt; Date: Mon, 9 Aug 2010 14:35:09 -0400<br>&gt; From: Luis Ibanez &lt;<a ymailto="mailto:luis.ibanez@kitware.com" href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>&gt; Subject: [Insight-users] Tcon Agenda Posted (Tuesday 1pm EST)<br>&gt; To: itk &lt;<a ymailto="mailto:Insight-users@itk.org" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>&gt;,&nbsp;&nbsp;&nbsp; Insight Developers<br>&gt; &nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:Insight-developers@itk.org" href="mailto:Insight-developers@itk.org">Insight-developers@itk.org</a>&gt;<br>&gt; Message-ID:<br>&gt;
 &nbsp;&nbsp;&nbsp; &lt;AANLkTi=OgJ1OyJRuRDOqY=<a ymailto="mailto:t70iSYpWT1JAVZcj_5HC5Y@mail.gmail.com" href="mailto:t70iSYpWT1JAVZcj_5HC5Y@mail.gmail.com">t70iSYpWT1JAVZcj_5HC5Y@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt;<br>&gt; The Agenda for tomorrow's tcon has been posted at:<br>&gt;<br><span>&gt; <a target="_blank" href="http://www.itk.org/Wiki/Agenda%26Status_081010">http://www.itk.org/Wiki/Agenda%26Status_081010</a></span><br>&gt;<br>&gt; As discussed in the last tcon,<br>&gt; we are inverting the order of the agenda,<br>&gt; in order to address some topics for which<br>&gt; we have run out of time in previous calls.<br>&gt;<br>&gt; Please feel free to add any topics of your interest.<br>&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; Luis<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL:<br><span>&gt; &lt;<a target="_blank"
 href="http://www.itk.org/pipermail/insight-users/attachments/20100809/286a83b3/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100809/286a83b3/attachment-0001.htm</a>&gt;</span><br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 2<br>&gt; Date: Mon, 9 Aug 2010 15:06:45 -0400<br>&gt; From: Bradley Lowekamp &lt;<a ymailto="mailto:blowekamp@mail.nih.gov" href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>&gt;<br>&gt; Subject: Re: [Insight-users] Tcon Agenda Posted (Tuesday 1pm EST)<br>&gt; To: Luis Ibanez &lt;<a ymailto="mailto:luis.ibanez@kitware.com" href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>&gt; Cc: itk &lt;<a ymailto="mailto:Insight-users@itk.org" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>&gt;,&nbsp;&nbsp;&nbsp; Insight Developers<br>&gt; &nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:Insight-developers@itk.org"
 href="mailto:Insight-developers@itk.org">Insight-developers@itk.org</a>&gt;<br>&gt; Message-ID: &lt;<a ymailto="mailto:3640D14E-D614-41AA-BE09-5223002184CB@mail.nih.gov" href="mailto:3640D14E-D614-41AA-BE09-5223002184CB@mail.nih.gov">3640D14E-D614-41AA-BE09-5223002184CB@mail.nih.gov</a>&gt;<br>&gt; Content-Type: text/plain; charset="us-ascii"<br>&gt;<br>&gt; Hello Luis,<br>&gt;<br>&gt; Looking over the agenda for tomorrow, I can't help but think&nbsp; that the<br>&gt; Microscopy should be a break out t-con (unless I missed it, and this is a<br>&gt; summary). I have had experience with streaming and many related issues to<br>&gt; the large datasets complications, so I would like to participate in such a<br>&gt; break out.<br>&gt;<br>&gt; Perhaps the agenda item should just be to schedule such a meeting?<br>&gt;<br>&gt; Brad<br>&gt;<br>&gt; On Aug 9, 2010, at 2:35 PM, Luis Ibanez wrote:<br>&gt;<br>&gt;&gt;<br>&gt;&gt; The Agenda for tomorrow's tcon has
 been posted at:<br>&gt;&gt;<br>&gt;&gt; <a href="http://www.itk.org/Wiki/Agenda%26Status_081010" target="_blank">http://www.itk.org/Wiki/Agenda%26Status_081010</a><br>&gt;&gt;<br>&gt;&gt; As discussed in the last tcon,<br>&gt;&gt; we are inverting the order of the agenda,<br>&gt;&gt; in order to address some topics for which<br>&gt;&gt; we have run out of time in previous calls.<br>&gt;&gt;<br>&gt;&gt; Please feel free to add any topics of your interest.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;&nbsp; &nbsp; Luis<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; &lt;ATT00001..txt&gt;<br>&gt;<br>&gt; ========================================================<br>&gt; Bradley Lowekamp<br>&gt; Lockheed Martin Contractor for<br>&gt; Office of High Performance Computing and Communications<br>&gt; National Library of Medicine<br>&gt; <a ymailto="mailto:blowekamp@mail.nih.gov" href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a><br>&gt;<br>&gt;<br>&gt; -------------- next
 part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL:<br><span>&gt; &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100809/bd7b55cd/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100809/bd7b55cd/attachment-0001.htm</a>&gt;</span><br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 3<br>&gt; Date: Mon, 9 Aug 2010 15:16:54 -0400<br>&gt; From: Arnaud GELAS &lt;<a ymailto="mailto:arnaud_gelas@hms.harvard.edu" href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>&gt;<br>&gt; Subject: Re: [Insight-users] [Insight-developers] Tcon Agenda Posted<br>&gt; &nbsp;&nbsp;&nbsp; (Tuesday 1pm EST)<br>&gt; To: Bradley Lowekamp &lt;<a ymailto="mailto:blowekamp@mail.nih.gov" href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>&gt;<br>&gt; Cc: itk &lt;<a ymailto="mailto:Insight-users@itk.org"
 href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>&gt;,&nbsp;&nbsp;&nbsp; Insight Developers<br>&gt; &nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:Insight-developers@itk.org" href="mailto:Insight-developers@itk.org">Insight-developers@itk.org</a>&gt;,&nbsp;&nbsp;&nbsp; Luis Ibanez &lt;<a ymailto="mailto:luis.ibanez@kitware.com" href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;,<br>&gt; &nbsp;&nbsp;&nbsp; "Megason,&nbsp;&nbsp;&nbsp; Sean" &lt;<a ymailto="mailto:Sean_Megason@hms.harvard.edu" href="mailto:Sean_Megason@hms.harvard.edu">Sean_Megason@hms.harvard.edu</a>&gt;<br>&gt; Message-ID: &lt;<a ymailto="mailto:4C605426.4080103@hms.harvard.edu" href="mailto:4C605426.4080103@hms.harvard.edu">4C605426.4080103@hms.harvard.edu</a>&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>&gt;<br>&gt; &nbsp; Hi Brad,<br>&gt;<br>&gt; I think we should do both, first to present problems from the microscopy<br>&gt;
 community. At least everyone can understand some of the related problems<br>&gt; in terms of design. Then interested people and people that have ideas on<br>&gt; how to address these issues can then meet in another break out t-con.<br>&gt;<br>&gt; It seems to be important to discuss at least in the main t-conf:<br>&gt;<br>&gt; &nbsp; &nbsp; * how to deal with time?<br>&gt; &nbsp; &nbsp; * how to deal with channels? (Note that for one channel, the pixel<br>&gt; &nbsp; &nbsp; &nbsp; type could be a scalar, vector or tensor)...<br>&gt;<br>&gt; Then we could discuss other details in the break out one...<br>&gt;<br>&gt; Arnaud<br>&gt;<br>&gt; On 08/09/2010 03:06 PM, Bradley Lowekamp wrote:<br>&gt;&gt; Hello Luis,<br>&gt;&gt;<br>&gt;&gt; Looking over the agenda for tomorrow, I can't help but think&nbsp; that the<br>&gt;&gt; Microscopy should be a break out t-con (unless I missed it, and this<br>&gt;&gt; is a summary). I have had experience with streaming and
 many related<br>&gt;&gt; issues to the large datasets complications, so I would like to<br>&gt;&gt; participate in such a break out.<br>&gt;&gt;<br>&gt;&gt; Perhaps the agenda item should just be to schedule such a meeting?<br>&gt;&gt;<br>&gt;&gt; Brad<br>&gt;&gt;<br>&gt;&gt; On Aug 9, 2010, at 2:35 PM, Luis Ibanez wrote:<br>&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; The Agenda for tomorrow's tcon has been posted at:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; <a href="http://www.itk.org/Wiki/Agenda%26Status_081010" target="_blank">http://www.itk.org/Wiki/Agenda%26Status_081010</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; As discussed in the last tcon,<br>&gt;&gt;&gt; we are inverting the order of the agenda,<br>&gt;&gt;&gt; in order to address some topics for which<br>&gt;&gt;&gt; we have run out of time in previous calls.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Please feel free to add any topics of your interest.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;
 Luis<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; &lt;ATT00001..txt&gt;<br>&gt;&gt;<br>&gt;&gt; ========================================================<br>&gt;&gt;<br>&gt;&gt; Bradley Lowekamp<br>&gt;&gt;<br>&gt;&gt; Lockheed Martin Contractor for<br>&gt;&gt;<br>&gt;&gt; Office of High Performance Computing and Communications<br>&gt;&gt;<br>&gt;&gt; National Library of Medicine<br>&gt;&gt;<br>&gt;&gt; <a ymailto="mailto:blowekamp@mail.nih.gov" href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a> &lt;mailto:<a ymailto="mailto:blowekamp@mail.nih.gov" href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL:<br><span>&gt; &lt;<a target="_blank"
 href="http://www.itk.org/pipermail/insight-users/attachments/20100809/424eaff2/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100809/424eaff2/attachment-0001.htm</a>&gt;</span><br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 4<br>&gt; Date: Mon, 09 Aug 2010 14:35:37 -0500<br>&gt; From: Oleksandr Dzyubak &lt;<a ymailto="mailto:adzyubak@gmail.com" href="mailto:adzyubak@gmail.com">adzyubak@gmail.com</a>&gt;<br>&gt; Subject: [Insight-users] itk::BilateralImageFilter extremely slow<br>&gt; To: insight-users &lt;<a ymailto="mailto:Insight-users@itk.org" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>&gt;<br>&gt; Message-ID: &lt;<a ymailto="mailto:4C605889.6020103@gmail.com" href="mailto:4C605889.6020103@gmail.com">4C605889.6020103@gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>&gt;<br>&gt;<br>&gt; Dear ITK users and developers,<br>&gt;<br>&gt; A
 while ago for my experiments I ran into a need of using<br>&gt; a narrow kernel bilateral filter so I decided to give<br>&gt; the itk:: BilateralImageFilter class a try.<br>&gt; After some pre-tests with small test images, I ran a filter on real images.<br>&gt; Well, my first impression is somewhat discouraging.<br>&gt; But it might be that I am doing some terrible mistake which I do not see.<br>&gt;<br>&gt; My setup.<br>&gt; 1) Hardware: 4x4 core server with 64 bit Debian Linux.<br>&gt; 2) ITK-3.18 with p-threads support ON.<br>&gt; 3) Image 561x561x478.<br>&gt;<br>&gt; I followed the recommendations from the ITK user guide<br>&gt; and below are results.<br>&gt;<br>&gt; dzyubak@helium: /H61_Mo_721Views_July_31_2009$ time<br>&gt; ./Bilateral_LessAgressive h61_with_psf.hdr h61_with_psf_ds05_rs4.hdr 0.5 4.0<br>&gt;<br>&gt; With all 16 CPUs 100% busy after 1241m29.741s it was still running.<br>&gt; Thus I should cancel the run not having an
 output.<br>&gt;<br>&gt; real&nbsp; &nbsp; 1241m29.741s<br>&gt; user&nbsp; &nbsp; 19600m14.380s<br>&gt; sys&nbsp; &nbsp; 6m33.993s<br>&gt;<br>&gt; After I changed the parameters, I got something but it was not what I<br>&gt; wanted.<br>&gt;<br>&gt; dzyubak@helium: /H61_Mo_721Views_July_31_2009$ time<br>&gt; ./Bilateral_LessAgressive h61_with_psf.hdr h61_with_psf_ds005_rs4.hdr<br>&gt; 0.05 4.0<br>&gt;<br>&gt; real&nbsp; &nbsp; 63m46.774s<br>&gt; user&nbsp; &nbsp; 764m24.782s<br>&gt; sys&nbsp; &nbsp; 0m18.849s<br>&gt;<br>&gt; Since this filter worked extremely slow even with 16 horses under the hood,<br>&gt; I started digging the Insight Journal and found the contribution<br>&gt; "A Fast Approximation to the Bilateral Filter for ITK" by J. Woehr.<br>&gt;<br>&gt; I was attracted by the word "Fast" since it quite often means "faster<br>&gt; performance".<br>&gt; Even though I did not like the author's note "it is single threaded",<br>&gt; I decided to
 eventually try it and, to be fair,<br>&gt; I used exactly the same parameters as for itk:: BilateralImageFilter.<br>&gt;<br>&gt; dzyubak@helium: /H61_Mo_721Views_July_31_2009$&nbsp; time<br>&gt; ./FastBilateral_LessAgressive h61_with_psf.hdr h61_with_psf_ds05_rs4.hdr<br>&gt; 0.5 4.0<br>&gt; ImageFileName: h61_with_psf.img<br>&gt;<br>&gt; real&nbsp; &nbsp; 4m49.325s<br>&gt; user&nbsp; &nbsp; 4m35.085s<br>&gt; sys&nbsp; &nbsp; 0m5.804s<br>&gt;<br>&gt; In the submission description J. Woehr said that FastBilateral<br>&gt; performs poorer for the narrow kernels thus if someone is<br>&gt; in a need of such cases (it is exactly me!),<br>&gt; then the itk:: BilateralImageFilter should be used instead.<br>&gt;<br>&gt; Well, I would like to but FastBilateral performed 200 times<br>&gt; as much vs itk:: BilateralImageFilter.<br>&gt; And in addition to that, for some kernel sizes it never<br>&gt; went out of the loop.<br>&gt;<br>&gt; What am I missing
 here?<br>&gt; Did someone experience the same filter behaver?<br>&gt; Is it wrong conditional causing such a "prolongated" loop?<br>&gt; Is there any recipe I could used to shorten<br>&gt; such unacceptable long run time of itk:: BilateralImageFilter?<br>&gt;<br>&gt; I appreciate any suggestions/discussions on this matter.<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; Alex<br>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; Message: 5<br>&gt; Date: Mon, 9 Aug 2010 12:42:12 -0700 (PDT)<br>&gt; From: habibbaluwala2010 &lt;<a ymailto="mailto:habibbaluwala@gmail.com" href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>&gt;<br>&gt; Subject: Re: [Insight-users] Problem with passing images to functions<br>&gt; To: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt; Message-ID: &lt;<a ymailto="mailto:29391440.post@talk.nabble.com"
 href="mailto:29391440.post@talk.nabble.com">29391440.post@talk.nabble.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=UTF-8<br>&gt;<br>&gt;<br>&gt; Hello Sergio,<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Can you give me an example of how to use this in context<br>&gt; with the syntax? I am really thankful for the help.<br>&gt;<br>&gt;<br>&gt; Kind regards,<br>&gt;<br>&gt; Habib Baluwala<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Sergio Vera wrote:<br>&gt;&gt;<br>&gt;&gt; Following advices from Luis Iba?ez in a previous mail of the list, we now<br>&gt;&gt; use the following rules:<br>&gt;&gt;<br>&gt;&gt; const ITKImgType *ImgIn&nbsp; when images are input to a method and<br>&gt;&gt;<br>&gt;&gt; ITKImgType::Pointer &amp;ImgOut&nbsp; when the image will be created inside the<br>&gt;&gt; function<br>&gt;&gt;<br>&gt;&gt; regards<br>&gt;&gt;<br>&gt;&gt; 2010/8/6 D?enan Zuki? &lt;<a ymailto="mailto:dzenanz@gmail.com"
 href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;<br>&gt;&gt;<br>&gt;&gt;&gt; Use ImageType::Pointer. Here is an example:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; void calc2DJointHistogram(VisualizingImageType::Pointer x,<br>&gt;&gt;&gt; VisualizingImageType::Pointer y, std::string savefilename)<br>&gt;&gt;&gt; {<br>&gt;&gt;&gt; ...<br>&gt;&gt;&gt; }<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; //calling it<br>&gt;&gt;&gt; VisualizingImageType::Pointer lVis, hVis;<br>&gt;&gt;&gt; ...<br>&gt;&gt;&gt; hVis=hReader-&gt;GetOutput();<br>&gt;&gt;&gt; calc2DJointHistogram(lVis, hVis, fnNoExt+"_LH.png");<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; D?enan<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Fri, Aug 6, 2010 at 15:32, habibbaluwala2010<br>&gt;&gt;&gt; &lt;<a ymailto="mailto:habibbaluwala@gmail.com" href="mailto:habibbaluwala@gmail.com">habibbaluwala@gmail.com</a>&gt;wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Hi Everyone,<br>&gt;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; I am a biot confused on how can i pass an image with<br>&gt;&gt;&gt;&gt; smart<br>&gt;&gt;&gt;&gt; pointers to an outside function . I basically need this to avoid<br>&gt;&gt;&gt;&gt; reproducing<br>&gt;&gt;&gt;&gt; the code again and again and also to avoid composite filters. It would<br>&gt;&gt;&gt;&gt; be<br>&gt;&gt;&gt;&gt; very helpful if you can provide an example which does the job!!! Anyways<br>&gt;&gt;&gt;&gt; looking forward to your replies.<br>&gt;&gt;&gt;&gt; --<br>&gt;&gt;&gt;&gt; View this message in context:<br>&gt;&gt;&gt;&gt;<br><span>&gt;&gt;&gt;&gt; <a target="_blank" href="http://old.nabble.com/Problem-with-passing-images-to-functions-tp29356451p29356451.html">http://old.nabble.com/Problem-with-passing-images-to-functions-tp29356451p29356451.html</a></span><br>&gt;&gt;&gt;&gt; Sent from the ITK - Users mailing list archive at <a target="_blank"
 href="http://Nabble.com">Nabble.com</a>.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; _____________________________________<br>&gt;&gt;&gt;&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br><span>&gt;&gt;&gt;&gt; <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br><span>&gt;&gt;&gt;&gt; <a target="_blank" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></span><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br><span>&gt;&gt;&gt;&gt; <a target="_blank"
 href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br><span>&gt;&gt;&gt;&gt; <a target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; _____________________________________<br><span>&gt;&gt;&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt;&gt;&gt; <a href="http://www.kitware.com/products/protraining.html"
 target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt;&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; Sergio Vera<br>&gt;&gt;<br>&gt;&gt;&nbsp; Alma IT Systems<br>&gt;&gt;&nbsp; C/ Vilana, 4B, 4? 1?<br>&gt;&gt;&nbsp; 08022 Barcelona<br>&gt;&gt;&nbsp; T. (+34) 932 380 592<br>&gt;&gt;&nbsp; <a target="_blank" href="http://www.alma3d.com">www.alma3d.com</a><br>&gt;&gt;<br>&gt;&gt; _____________________________________<br><span>&gt;&gt; Powered by <a target="_blank"
 href="http://www.kitware.com">www.kitware.com</a></span><br>&gt;&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;&gt;<br>&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt;&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt;&gt;<br>&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt; --<br>&gt; View this message in
 context:<br><span>&gt; <a target="_blank" href="http://old.nabble.com/Problem-with-passing-images-to-functions-tp29356451p29391440.html">http://old.nabble.com/Problem-with-passing-images-to-functions-tp29356451p29391440.html</a></span><br>&gt; Sent from the ITK - Users mailing list archive at Nabble.com.<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a ymailto="mailto:Insight-users@itk.org" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br>&gt;<br>&gt; End of Insight-users Digest, Vol 76, Issue 24<br>&gt; *********************************************<br>&gt;<br>&gt;<br>&gt; _____________________________________<br><span>&gt; Powered by <a target="_blank"
 href="http://www.kitware.com">www.kitware.com</a></span><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br>&gt;<br></div></div>
</div><br>

      </body></html>