Using plastimatch in c# application

130 צפיות
מעבר להודעה הראשונה שלא נקראה

G Tom

לא נקראה,
19 באוק׳ 2022, 23:05:1319.10.2022
עד Plastimatch
HI 

I wondered if anyone has attempted using plastimatch api in c#. If so I would like to  know how to do it.
Actually, I am only interested in a few functionalities such as gamma_dose_comparison
My plan is to first build a small c++ dll for gamma compare, then expose that dll to my c# using a c++/cli wrapper. 
Has anyone done something like this ? 
Is there an easier route ?

Thanks 
GT

G Tom

לא נקראה,
22 באוק׳ 2022, 9:57:1722.10.2022
עד Plastimatch
Anyone has some pointers on how to use plastimatch lib in c# project ?
Please I need some guidance where to even start.

GT

Sharp, Gregory C.

לא נקראה,
26 באוק׳ 2022, 12:18:0326.10.2022
עד plast...@googlegroups.com

Hi GT,

I've looked into it a bit.  If this is something you want me to maintain, then SWIG is probably the way to go, as that would also enable python wrapping.  Let me know if you want to pursue this direction.

 

If you are maintain to maintain it yourself, then you have additional choices.  I will admit I don't understand the details, but roughly speaking the choices are C++/CLI, P/Invoke, and COM.  I can give you a few links to get started for the first two options.  (I am assuming you aren't interested in COM.)

 

https://learn.microsoft.com/en-us/cpp/dotnet/mixed-native-and-managed-assemblies?view=msvc-170

https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke

 

Greg

 

 

From: plast...@googlegroups.com <plast...@googlegroups.com> On Behalf Of G Tom
Sent: Saturday, October 22, 2022 9:57 AM
To: Plastimatch <plast...@googlegroups.com>
Subject: [Plastimatch] Re: Using plastimatch in c# application

 

        External Email - Use Caution        

--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/f82dc854-6986-4a94-92b7-329ba1bc07adn%40googlegroups.com.

The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline .


Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 

G Tom

לא נקראה,
8 בנוב׳ 2022, 17:46:188.11.2022
עד Plastimatch
Hi Greg, thanks for your reply. I have been looking into swig and I am sure that is the way to go. The question is how to go about it ?. 
for a start, I made a small test dll linked to both plastimatch and itk:
==
//PLMGamma.h
#pragma once
#include <itkImage.h>
#include "gamma_dose_comparison.h"


#ifdef PLMGAMMADLL_EXPORTS  
#define PLMGAMMA_API __declspec(dllexport)  
#else  
#define PLMGAMMA_API __declspec(dllimport)  
#endif  
class  PLMGAMMA_API PLMGamma
{
public:
    void Compare(FloatImageType::Pointer float_image1, FloatImageType::Pointer float_image2);

};
==

and 
==
//PLMGamma.cpp
#include "PLMGamma.h"
#include<iostream>

void PLMGamma::Compare(FloatImageType::Pointer float_image1, FloatImageType::Pointer float_image2)
{
    Gamma_dose_comparison gdc;

    gdc.set_reference_image(float_image1);
    gdc.set_compare_image(float_image2);

    gdc.run();
}
==
Now the question is how do I create a swig interface file for this class  for use in c# Cshap ? 

Thanks 

GT

Sharp, Gregory C.

לא נקראה,
9 בנוב׳ 2022, 15:30:089.11.2022
עד plast...@googlegroups.com

Wow, great.  Thank you for getting the ball rolling!

 

Let me take a crack at it.  If you don't hear from me by next week give me a ping.  I'll need to read the documentation a bit, it's been over 20 years since I last used SWIG.

Sharp, Gregory C.

לא נקראה,
9 בנוב׳ 2022, 16:53:429.11.2022
עד plast...@googlegroups.com

OK, I made some progress. 

 

  1. Please update your plastimatch to git HEAD.
  2. Delete your build tree and re-configure.  You'll find a new CMake variable "PLM_CONFIG_ENABLE_CSHARP".   Set that to ON.
  3. Build the plmutil-cs target.
  4. Then, in the src/plastimatch/util subdirectory of the build tree, you should find a library "plmutil-cs.lib" and a file plastimatch.cs.  I think you would need to add that file into your csharp project to use it.

 

Give it a try!  Probably won't work the first time.

G Tom

לא נקראה,
12 בנוב׳ 2022, 21:56:5412.11.2022
עד Plastimatch
Hi Greg

I gave it a shot and it fails to compile but not sure what I need to fix. Perhaps the interface file needs some more swig stuff. 

//==============
//C:\Users\001User\Development\plmm2\src\util\gamma_dose_comparison.i
//==============
%module plastimatch
%{
//#include "plmutil_config.h"
//class Gamma_dose_comparison;
#include "gamma_dose_comparison.h"
%}
%include "gamma_dose_comparison.h"
//=================


Here's my error output:

1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------
2>------ Build started: Project: plmutil-cs, Configuration: Release x64 ------
2>Swig compile gamma_dose_comparison.i for csharp
2>Building Custom Rule C:/Users/001User/Development/plmm2/src/util/CMakeLists.txt
2>gamma_dose_comparisonCSHARP_wrap.cxx
2>   Creating library C:/Users/001User/Development/plmm2/build/src/util/Release/plmutil-cs.lib and object C:/Users/001User/Development/plmm2/build/src/util/Release/plmutil-cs.exp
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Gamma_dose_comparison::Gamma_dose_comparison(void)" (__imp_??0Gamma_dose_comparison@@QEAA@XZ) referenced in function CSharp_new_Gamma_dose_comparison
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Gamma_dose_comparison::~Gamma_dose_comparison(void)" (__imp_??1Gamma_dose_comparison@@QEAA@XZ) referenced in function CSharp_delete_Gamma_dose_comparison
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_reference_image(char const *)" (__imp_?set_reference_image@Gamma_dose_comparison@@QEAAXPEBD@Z) referenced in function CSharp_Gamma_dose_comparison_set_reference_image__SWIG_0
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_reference_image(class dlib::shared_ptr<class Plm_image> const &)" (__imp_?set_reference_image@Gamma_dose_comparison@@QEAAXAEBV?$shared_ptr@VPlm_image@@@dlib@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_reference_image__SWIG_1
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_reference_image(class itk::SmartPointer<class itk::Image<float,3> >)" (__imp_?set_reference_image@Gamma_dose_comparison@@QEAAXV?$SmartPointer@V?$Image@M$02@itk@@@itk@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_reference_image__SWIG_2
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_compare_image(char const *)" (__imp_?set_compare_image@Gamma_dose_comparison@@QEAAXPEBD@Z) referenced in function CSharp_Gamma_dose_comparison_set_compare_image__SWIG_0
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_compare_image(class dlib::shared_ptr<class Plm_image> const &)" (__imp_?set_compare_image@Gamma_dose_comparison@@QEAAXAEBV?$shared_ptr@VPlm_image@@@dlib@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_compare_image__SWIG_1
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_compare_image(class itk::SmartPointer<class itk::Image<float,3> >)" (__imp_?set_compare_image@Gamma_dose_comparison@@QEAAXV?$SmartPointer@V?$Image@M$02@itk@@@itk@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_compare_image__SWIG_2
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_mask_image(char const *)" (__imp_?set_mask_image@Gamma_dose_comparison@@QEAAXPEBD@Z) referenced in function CSharp_Gamma_dose_comparison_set_mask_image__SWIG_0
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_mask_image(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?set_mask_image@Gamma_dose_comparison@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_mask_image__SWIG_1
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_mask_image(class dlib::shared_ptr<class Plm_image> const &)" (__imp_?set_mask_image@Gamma_dose_comparison@@QEAAXAEBV?$shared_ptr@VPlm_image@@@dlib@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_mask_image__SWIG_2
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_mask_image(class itk::SmartPointer<class itk::Image<unsigned char,3> >)" (__imp_?set_mask_image@Gamma_dose_comparison@@QEAAXV?$SmartPointer@V?$Image@E$02@itk@@@itk@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_mask_image__SWIG_3
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __cdecl Gamma_dose_comparison::get_spatial_tolerance(void)" (__imp_?get_spatial_tolerance@Gamma_dose_comparison@@QEAAMXZ) referenced in function CSharp_Gamma_dose_comparison_get_spatial_tolerance
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_spatial_tolerance(float)" (__imp_?set_spatial_tolerance@Gamma_dose_comparison@@QEAAXM@Z) referenced in function CSharp_Gamma_dose_comparison_set_spatial_tolerance
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __cdecl Gamma_dose_comparison::get_dose_difference_tolerance(void)" (__imp_?get_dose_difference_tolerance@Gamma_dose_comparison@@QEAAMXZ) referenced in function CSharp_Gamma_dose_comparison_get_dose_difference_tolerance
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_dose_difference_tolerance(float)" (__imp_?set_dose_difference_tolerance@Gamma_dose_comparison@@QEAAXM@Z) referenced in function CSharp_Gamma_dose_comparison_set_dose_difference_tolerance
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_reference_dose(float)" (__imp_?set_reference_dose@Gamma_dose_comparison@@QEAAXM@Z) referenced in function CSharp_Gamma_dose_comparison_set_reference_dose
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::unset_reference_dose(void)" (__imp_?unset_reference_dose@Gamma_dose_comparison@@QEAAXXZ) referenced in function CSharp_Gamma_dose_comparison_unset_reference_dose
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_analysis_threshold(float)" (__imp_?set_analysis_threshold@Gamma_dose_comparison@@QEAAXM@Z) referenced in function CSharp_Gamma_dose_comparison_set_analysis_threshold
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_gamma_max(float)" (__imp_?set_gamma_max@Gamma_dose_comparison@@QEAAXM@Z) referenced in function CSharp_Gamma_dose_comparison_set_gamma_max
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_progress_callback(void (__cdecl*)(float))" (__imp_?set_progress_callback@Gamma_dose_comparison@@QEAAXP6AXM@Z@Z) referenced in function CSharp_Gamma_dose_comparison_set_progress_callback
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::run(void)" (__imp_?run@Gamma_dose_comparison@@QEAAXXZ) referenced in function CSharp_Gamma_dose_comparison_run
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class dlib::shared_ptr<class Plm_image> __cdecl Gamma_dose_comparison::get_gamma_image(void)" (__imp_?get_gamma_image@Gamma_dose_comparison@@QEAA?AV?$shared_ptr@VPlm_image@@@dlib@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_gamma_image
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class itk::SmartPointer<class itk::Image<float,3> > __cdecl Gamma_dose_comparison::get_gamma_image_itk(void)" (__imp_?get_gamma_image_itk@Gamma_dose_comparison@@QEAA?AV?$SmartPointer@V?$Image@M$02@itk@@@itk@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_gamma_image_itk
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Plm_image * __cdecl Gamma_dose_comparison::get_pass_image(void)" (__imp_?get_pass_image@Gamma_dose_comparison@@QEAAPEAVPlm_image@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_pass_image
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class itk::SmartPointer<class itk::Image<unsigned char,3> > __cdecl Gamma_dose_comparison::get_pass_image_itk(void)" (__imp_?get_pass_image_itk@Gamma_dose_comparison@@QEAA?AV?$SmartPointer@V?$Image@E$02@itk@@@itk@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_pass_image_itk
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Plm_image * __cdecl Gamma_dose_comparison::get_fail_image(void)" (__imp_?get_fail_image@Gamma_dose_comparison@@QEAAPEAVPlm_image@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_fail_image
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class itk::SmartPointer<class itk::Image<unsigned char,3> > __cdecl Gamma_dose_comparison::get_fail_image_itk(void)" (__imp_?get_fail_image_itk@Gamma_dose_comparison@@QEAA?AV?$SmartPointer@V?$Image@E$02@itk@@@itk@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_fail_image_itk
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Plm_image * __cdecl Gamma_dose_comparison::get_ref_image(void)" (__imp_?get_ref_image@Gamma_dose_comparison@@QEAAPEAVPlm_image@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_ref_image
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Plm_image * __cdecl Gamma_dose_comparison::get_comp_image(void)" (__imp_?get_comp_image@Gamma_dose_comparison@@QEAAPEAVPlm_image@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_comp_image
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __cdecl Gamma_dose_comparison::get_pass_fraction(void)" (__imp_?get_pass_fraction@Gamma_dose_comparison@@QEAAMXZ) referenced in function CSharp_Gamma_dose_comparison_get_pass_fraction
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl Gamma_dose_comparison::get_analysis_num_vox(void)" (__imp_?get_analysis_num_vox@Gamma_dose_comparison@@QEAAHXZ) referenced in function CSharp_Gamma_dose_comparison_get_analysis_num_vox
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl Gamma_dose_comparison::get_passed_num_vox(void)" (__imp_?get_passed_num_vox@Gamma_dose_comparison@@QEAAHXZ) referenced in function CSharp_Gamma_dose_comparison_get_passed_num_vox
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __cdecl Gamma_dose_comparison::get_reference_dose(void)" (__imp_?get_reference_dose@Gamma_dose_comparison@@QEAAMXZ) referenced in function CSharp_Gamma_dose_comparison_get_reference_dose
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Gamma_dose_comparison::get_report_string(void)" (__imp_?get_report_string@Gamma_dose_comparison@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function CSharp_Gamma_dose_comparison_get_report_string
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_report_string(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (__imp_?set_report_string@Gamma_dose_comparison@@QEAAXAEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function CSharp_Gamma_dose_comparison_set_report_string
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl Gamma_dose_comparison::is_local_gamma(void)" (__imp_?is_local_gamma@Gamma_dose_comparison@@QEAA_NXZ) referenced in function CSharp_Gamma_dose_comparison_is_local_gamma
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_local_gamma(bool)" (__imp_?set_local_gamma@Gamma_dose_comparison@@QEAAX_N@Z) referenced in function CSharp_Gamma_dose_comparison_set_local_gamma
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl Gamma_dose_comparison::is_compute_full_region(void)" (__imp_?is_compute_full_region@Gamma_dose_comparison@@QEAA_NXZ) referenced in function CSharp_Gamma_dose_comparison_is_compute_full_region
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_compute_full_region(bool)" (__imp_?set_compute_full_region@Gamma_dose_comparison@@QEAAX_N@Z) referenced in function CSharp_Gamma_dose_comparison_set_compute_full_region
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __cdecl Gamma_dose_comparison::get_inherent_resample_mm(void)" (__imp_?get_inherent_resample_mm@Gamma_dose_comparison@@QEAAMXZ) referenced in function CSharp_Gamma_dose_comparison_get_inherent_resample_mm
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_inherent_resample_mm(float)" (__imp_?set_inherent_resample_mm@Gamma_dose_comparison@@QEAAXM@Z) referenced in function CSharp_Gamma_dose_comparison_set_inherent_resample_mm
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl Gamma_dose_comparison::is_resample_nn(void)" (__imp_?is_resample_nn@Gamma_dose_comparison@@QEAA_NXZ) referenced in function CSharp_Gamma_dose_comparison_is_resample_nn
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_resample_nn(bool)" (__imp_?set_resample_nn@Gamma_dose_comparison@@QEAAX_N@Z) referenced in function CSharp_Gamma_dose_comparison_set_resample_nn
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl Gamma_dose_comparison::is_interp_search(void)" (__imp_?is_interp_search@Gamma_dose_comparison@@QEAA_NXZ) referenced in function CSharp_Gamma_dose_comparison_is_interp_search
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_interp_search(bool)" (__imp_?set_interp_search@Gamma_dose_comparison@@QEAAX_N@Z) referenced in function CSharp_Gamma_dose_comparison_set_interp_search
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl Gamma_dose_comparison::is_ref_only_threshold(void)" (__imp_?is_ref_only_threshold@Gamma_dose_comparison@@QEAA_NXZ) referenced in function CSharp_Gamma_dose_comparison_is_ref_only_threshold
2>gamma_dose_comparisonCSHARP_wrap.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Gamma_dose_comparison::set_ref_only_threshold(bool)" (__imp_?set_ref_only_threshold@Gamma_dose_comparison@@QEAAX_N@Z) referenced in function CSharp_Gamma_dose_comparison_set_ref_only_threshold
2>C:\Users\001User\Development\plmm2\build\src\util\Release\plmutil-cs.dll : fatal error LNK1120: 48 unresolved externals
2>Done building project "plmutil-cs.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Sharp, Gregory C.

לא נקראה,
14 בנוב׳ 2022, 16:51:5214.11.2022
עד Plastimatch
Hi GT,

Thanks for testing it out. Right now I'm just glad it builds! Looks like I'm not getting the library dependency right in CMake. The libutil-cs needs to depend on the libutil, but that is not yet done. I'll let you know when I have an update.

Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of G Tom <gregt...@gmail.com>
Sent: Saturday, November 12, 2022 9:56 PM
To: Plastimatch
Subject: Re: [Plastimatch] Re: Using plastimatch in c# application

External Email - Use Caution

1. Please update your plastimatch to git HEAD.
2. Delete your build tree and re-configure. You'll find a new CMake variable "PLM_CONFIG_ENABLE_CSHARP". Set that to ON.
3. Build the plmutil-cs target.
4. Then, in the src/plastimatch/util subdirectory of the build tree, you should find a library "plmutil-cs.lib" and a file plastimatch.cs. I think you would need to add that file into your csharp project to use it.
https://learn.microsoft.com/en-us/cpp/dotnet/mixed-native-and-managed-assemblies?view=msvc-170<https://secure-web.cisco.com/1KEIf86yOlK8QCdFiZciQrFCm8Xd9W68Oz2Z5PCNeg4d44nURvXuH9ZVb4JXzxaBsDHrlRz6cNNxHs735eXMRaWbPk950DWPrEyiLE6E59ObaEHuAVXTl-X192-zBmbSbyc4Tgz03BNTNGNsSIagzJ0PBE1YuGlRIhUc0eDT6qQlbHiNQ4Fwd-xtQtOQUea1_WM2OEDJaDCgR2rVAStlP6fHMWfX5EK98q5fO8mQG_E4RLQjwvsCH4yVPpzAr1jVHSI0X4ivmdmvl9tUhhgDgXP2dLJugtJijx5COG9C1I8iqFP34NfeKXYi3d4MW2m8I-S60vvLtx61ozmA0RfZuiw/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fcpp%2Fdotnet%2Fmixed-native-and-managed-assemblies%3Fview%3Dmsvc-170>
https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke<https://secure-web.cisco.com/1j0IeX2g9SQXfFN_Np1QAA9xEszB--fSxWVzyftCbZVsBlr5g9WTc4Xfb6wlzCKxsDTaocpILFjn80xt1PbX9FY148vuMJRk83wdVerLAxRME5QJXBn1itDNrs54ZXaP9eBQIudgWNXQSXVS7uPZxIMJN7fubuFttAFjTJEbRtQK81VNsNIHPQzkrRiLrsc8mRU6MAvK_ojNy8P6rMiTY-xOuv1xxtEeX1y-G875WHq2N0WnnQ20Mj-zH7x-fzMyezKwoYDbWL6RSQmAgEaVq3Vu1nEtikhdVo7HPby8tq2U4ZdmUgwkKgUWvh32ljA8rYaRRpwrRNbxrZH3Nd8yPcw/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fstandard%2Fnative-interop%2Fpinvoke>

Greg


From: plast...@googlegroups.com <plast...@googlegroups.com> On Behalf Of G Tom
Sent: Saturday, October 22, 2022 9:57 AM
To: Plastimatch <plast...@googlegroups.com>
Subject: [Plastimatch] Re: Using plastimatch in c# application


External Email - Use Caution
Anyone has some pointers on how to use plastimatch lib in c# project ?
Please I need some guidance where to even start.

GT
On Wednesday, October 19, 2022 at 11:05:13 PM UTC-4 G Tom wrote:
HI

I wondered if anyone has attempted using plastimatch api in c#. If so I would like to know how to do it.
Actually, I am only interested in a few functionalities such as gamma_dose_comparison
My plan is to first build a small c++ dll for gamma compare, then expose that dll to my c# using a c++/cli wrapper.
Has anyone done something like this ?
Is there an easier route ?

Thanks
GT
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/f82dc854-6986-4a94-92b7-329ba1bc07adn%40googlegroups.com<https://secure-web.cisco.com/1nMUvRx75bZuS94P6HDhhG5SZZ9dWo5ivs6TyoDEl2UA25Du1W4yD6cO84Lox5ZUFzeUrwoQ24Rz7Vt7efjpeQ6PMLAcW7rb-Gihgi3CxBP1scYbz6MpMlYzRC20sTXA5TTI-JPXaB2e2OtiHzkyEPnSRyVyFhXq_1f1_7AxI3FI0RWFcYj9fZ8dlMASxLZw9-iHPiD86Ar8IQMsxB0mU77H6d6ftS2S4JzwOVoSWcYW0xN3R2KtvDYvsqoOgty5Xg7sQ0d0jdPeI33VxVMJEjh6l8h9LAjJRVGUParHbdiPAXkwjevg0_MPtjVg3ZG2GHEqUA_Fqn_NwET4C_e4JPw/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Ff82dc854-6986-4a94-92b7-329ba1bc07adn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/1Brg-ta62xkaIGEbeawfeHfC8OluwZ-NEuYVacYhDWgjqTw3t4r1zCasY_8yv7pA0o6qVZa1LOCJH1Bc75_eAi60jlx2KXYGpKQdidMi8Ecb0IBZXS_klhRzGHPSHWO0qGeVrXZpAHS6DAKIZrnE2B98oUdrVyk_qNhCWt8SaYn6-6LfnqIWE9WJjkgtiSTIlE-ISfwtM4eN51tR5J6GFlP5_vLMHWUjZf2eXMLhcUPPNaagoe1pJs3yh3yi75oSKTQoapgu6wcTJGkN3COi3Qh6zOtLMut6pgjnEHTQjXaO4eMYGxewNBPMuCKm42D0j9v3oyjOYM-xhbhyNb5wmBw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/71630148-a693-4538-90ad-b1f87d841402n%40googlegroups.com<https://secure-web.cisco.com/1EIAyySAJzL0kkToRkb3H5jGNTup_q69xbgXndJ_K_3Nq-Qfb553ukDFDRfyrJYrCAdwf7YIbvScwD8jIboS4Q2JdMIlHckufPR63OCsBr7Kk_cwFWB1NZUe4eGmpOtJqr_Fewzf2DJrHqY6uofMI2ZjbbKIyP0Dh7rQoC5K4jdrhmAouCVgT1LH2cXJhUtW7HOOvShDI5QCE3PgUVA6z1eshIQt5pEmw2NBppifaIxzKQwDevbJ915v-wlUe0eaXfK8ERPHTF6jvjyOrMOV5WE-DICY6qMY6HM3YVOUSG-_ZtjdW3s6b51wtdyOtZd2UgSJV6PFpTu146NU3AcnshQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F71630148-a693-4538-90ad-b1f87d841402n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/1WobIAMSM9Aymco8pSFPt8ms0sGJdcNcAa0HyybVrnfECSkcW2XJbQPuXGAPXPx5LCdQZeejE1akUok1eIw4DQWFGkNe1MdhLRvDkpC9QjZiyyuoVeAqe4LxUw0J3k4ui21bpoQemNqgayvuPrTrXyDM1XXa6iS6tm2HRdmlJtlfZ6K2sxyI2EKtmBwafvwY2JpzMnIq9wy_1QJTjgfYpPnpf1tHXwj7tjHRWdXLN1VaOjmS_zNwkE6w5sRg_RWTkr-wvxCrU99vPJpEIgyKKGhuzSiZjWJU0o3Ydp9E81vlDYA82JpS3uzP9BAqfor7GSnpyHd4s2zbZO9bpacBcMQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/BL0PR04MB45935965502FAF560836EBCACF3E9%40BL0PR04MB4593.namprd04.prod.outlook.com<https://secure-web.cisco.com/1-R7XtSKEz5W7-efY6molHMCqIPSeANUVnvDSGzWRwG3rC3U8Dr1UieR1yGi3D2iD7WaP54pR4i1_2DCdBEDr1zEfzHcpEX-NQ0YMWPmumZsCBP1hHXoW5Yd-FIws_h614WS7sfSaFLl1tshY38ibXS1_z7xoTQ9d90-08wnJ8ualicLzpjw41dtn-uHwhmytg17-9jmYKstRpe_PlM4hFyVxxcQn-GCmc_FT5ECtuqVBdEcN6VdFLexePBg_iltdCYMndEVj5LsFauZG10RMkhBbXo_TAHJvyTLULIDAgSa7FQXcCAfp9Usvr_kC-2m9ysfDrKYCWq7AVjLtnu_J2g/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2FBL0PR04MB45935965502FAF560836EBCACF3E9%2540BL0PR04MB4593.namprd04.prod.outlook.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/1lWYlgHNzhlbxTGrZExv0bNjwwwZDXntrt5FTxZMU3puD_I0Yt9BAVeOZcxr5bvwppOuv2j3ebBQbIyFNVLivAcoBTaGe10_2YCYEBa7Z78_MQSSc6vIIDSgtNx47s1JVEk6xEFdrUGA4HIlmk4KWVv1WwN-Al6TwYeOj-l9gLzklh8qMq3FeVdNfEnWxIoJWH4Rc4lMZM746LJaYnPGtr65ZWHpx_TnREm7kczz4QitUqwOqaZLUe9ioN_KpG5UfIWsdTj76Doix17axC3f7p_eqy-I0JXnaITKt4O9RYZM7oQAdR2JkmCymVpkWCJIMdvCGAFvSzSWQJxbWnPKCMA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/23b976c7-5349-4ae1-8fd9-a06d3f574697n%40googlegroups.com<https://secure-web.cisco.com/10Fcs8NoLu7p9YrAeRffLDwTmp4lDqd3e4S3otNgD5r6dSszdrh_4MrzU56cgyh-zQhypaFTc4GSD2O_ZlGuzumGum1BBlweJCywUznA1BEJyfLav-7rOYEGLhn739NzCPlO7Ky2e_lqblASBTtiPWbLfragaW9Ncyb7YrXxf-T0_2ZiVGKC7qhMLcLQuNVM-oEiv2WTqYKil8WzUB4Z1vszBCQCCBvmVssogdFYYnIEQ2A6egudc9imVHeKCIkw52ENQZl9s4gANaCluXZ8bHdK9B7R14x75g-5xRrQ6dDcRLeZ5bb5EmAfnHHNAbub6W_ivs3xp3ramdpOJr7iy2A/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F23b976c7-5349-4ae1-8fd9-a06d3f574697n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .

Sharp, Gregory C.

לא נקראה,
17 בנוב׳ 2022, 15:16:5817.11.2022
עד Plastimatch
Hi GT,

I was able to get it to run. Can you please update your source code and try again?

The method I used is described in this post:

https://iamsorush.com/posts/cpp-csharp-swig/

So in order to run it, I had to edit the csproj file as described in that web page. The following program runs for me:

Console.WriteLine("Hello, World!");
var k = new Gamma_dose_comparison();

You still wont be able to use it, since I need to wrap a few more bits. But it is running fine for me on linux with dotnet 6.0.

Greg

G Tom

לא נקראה,
23 בנוב׳ 2022, 13:01:3523.11.2022
עד Plastimatch
Hmm 

It looks like something is wrong with the itk includes:

1>------ Build started: Project: plmutil-cs, Configuration: Release x64 ------
1>gamma_dose_comparisonCSHARP_wrap.cxx
1>c:\users\testUser01\development\plmm\src\base\itk_direction_type.h(7): fatal error C1083: Cannot open include file: 'itkMatrix.h': No such file or directory
1>Done building project "plmutil-cs.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 31 up-to-date, 0 skipped ==========

When this compiled  for you,  how did you proceed run the sample c# project example? 

Thanks 

GT

Sharp, Gregory C.

לא נקראה,
24 בנוב׳ 2022, 13:58:2424.11.2022
עד Plastimatch
Hi GT,
I was able to reproduce. Looks like Windows-only issue. Update when I know more.
Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of G Tom <gregt...@gmail.com>
Sent: Wednesday, November 23, 2022 1:01 PM
To: Plastimatch
Subject: Re: [Plastimatch] Re: Using plastimatch in c# application

External Email - Use Caution

Hmm

It looks like something is wrong with the itk includes:

1>------ Build started: Project: plmutil-cs, Configuration: Release x64 ------
1>gamma_dose_comparisonCSHARP_wrap.cxx
1>c:\users\testUser01\development\plmm\src\base\itk_direction_type.h(7): fatal error C1083: Cannot open include file: 'itkMatrix.h': No such file or directory
1>Done building project "plmutil-cs.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 31 up-to-date, 0 skipped ==========

When this compiled for you, how did you proceed run the sample c# project example?

Thanks

GT

On Thursday, November 17, 2022 at 3:16:58 PM UTC-5 Sharp, Gregory C. wrote:
Hi GT,

I was able to get it to run. Can you please update your source code and try again?

The method I used is described in this post:

https://iamsorush.com/posts/cpp-csharp-swig/<https://secure-web.cisco.com/1ATy3ilXWEisVyJQ5U1_uCZfoFAgda1-uLxwPklrmQCzTyonDbRfkC-SkCLTpVhDOJlgxg-h4HO8HFK57DDdB0oJm3TyMg2IRZsWyCPA_Bg8CvHK_SF7ZfbHV4TziHe8M9eMS_FlDAmdahHpmX8jTIPUqh13v_RSNMjc-oVVdWi2hRVwdkGoL3O3vSOBU_uQzxmAJBNuErG-AHPrhBg7rMb9svsyJdFUC-EizoUa8y9OPfZdwvh1WDcrTQSUGql1h4zLiq2j8LdX4Ei0-SdhLfpipZqvG_L-NU1DOsWGNnDvZmlM2CpKRGZZBw-ENjWAoR-F8BsBgyvop_p3K0Dl7dg/https%3A%2F%2Fiamsorush.com%2Fposts%2Fcpp-csharp-swig%2F>
https://learn.microsoft.com/en-us/cpp/dotnet/mixed-native-and-managed-assemblies?view=msvc-170<https://secure-web.cisco.com/1VTptVoYECVXS1EQpZ4IMXI056oCdV66bZxWPq5tHW_JeCizho0eRhQ4dgw61X6xdWbJt2F1OEQgnO1sm-Ny7UiwY9k3zLNlX4yZjNIxzfCGMXRcVr5hT80ilJtoCs0UwQBigzOtTMJ6uCS8cP35Ln7V1U0go93h_MjAV-k23-KL0h1uTK2wJWNoRz69DH3peFUE4RBPLnkQNFRKr0s2aKQRe3mMvpp-GtP1ExuyrrkoGnI0qK_v1MBj_SdQak-CBLE2Bnx6JNQw5HVlvzGkHnfaTIIttbaKrhfiTehomtBHjqjyesmiaFVuZ81D3dUbL5TEDYrYUnI0Z86RJsdDQvQ/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fcpp%2Fdotnet%2Fmixed-native-and-managed-assemblies%3Fview%3Dmsvc-170><https://secure-web.cisco.com/1KEIf86yOlK8QCdFiZciQrFCm8Xd9W68Oz2Z5PCNeg4d44nURvXuH9ZVb4JXzxaBsDHrlRz6cNNxHs735eXMRaWbPk950DWPrEyiLE6E59ObaEHuAVXTl-X192-zBmbSbyc4Tgz03BNTNGNsSIagzJ0PBE1YuGlRIhUc0eDT6qQlbHiNQ4Fwd-xtQtOQUea1_WM2OEDJaDCgR2rVAStlP6fHMWfX5EK98q5fO8mQG_E4RLQjwvsCH4yVPpzAr1jVHSI0X4ivmdmvl9tUhhgDgXP2dLJugtJijx5COG9C1I8iqFP34NfeKXYi3d4MW2m8I-S60vvLtx61ozmA0RfZuiw/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fcpp%2Fdotnet%2Fmixed-native-and-managed-assemblies%3Fview%3Dmsvc-170>
https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke<https://secure-web.cisco.com/1XCvSBWPRDuCotzxOrIdYo5u_BOQEbMTp-Jo18mG1sI2lI_Aq-DCz5muE85pf-2a_rn6FTH5QsCLN8yqZmRTZVx_lWOZ0VoFclFiIGaQgON94zzI7ovwBCCCklRBTHR7JVDMkSH_5Buexj-1f_BVoosfUxR2Enp4_J64JK25gdMWbC1IM07huXa4Fxi1fTo5GrcmslrSxEOpPcEUmnIWZNVOnBJQzWDVWji3jsSQni4jatyBeYcksEs6ymsacthi0It1HDisAxbPCDaqTEBryZ_WLymEKtwqJVQB5FgBDTWUAKzrWoqIjd5LWn1XN7VqgSV5ADRrvvc3pDgd0Z5d4CA/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fstandard%2Fnative-interop%2Fpinvoke><https://secure-web.cisco.com/1j0IeX2g9SQXfFN_Np1QAA9xEszB--fSxWVzyftCbZVsBlr5g9WTc4Xfb6wlzCKxsDTaocpILFjn80xt1PbX9FY148vuMJRk83wdVerLAxRME5QJXBn1itDNrs54ZXaP9eBQIudgWNXQSXVS7uPZxIMJN7fubuFttAFjTJEbRtQK81VNsNIHPQzkrRiLrsc8mRU6MAvK_ojNy8P6rMiTY-xOuv1xxtEeX1y-G875WHq2N0WnnQ20Mj-zH7x-fzMyezKwoYDbWL6RSQmAgEaVq3Vu1nEtikhdVo7HPby8tq2U4ZdmUgwkKgUWvh32ljA8rYaRRpwrRNbxrZH3Nd8yPcw/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fstandard%2Fnative-interop%2Fpinvoke>

Greg


From: plast...@googlegroups.com <plast...@googlegroups.com> On Behalf Of G Tom
Sent: Saturday, October 22, 2022 9:57 AM
To: Plastimatch <plast...@googlegroups.com>
Subject: [Plastimatch] Re: Using plastimatch in c# application


External Email - Use Caution
Anyone has some pointers on how to use plastimatch lib in c# project ?
Please I need some guidance where to even start.

GT
On Wednesday, October 19, 2022 at 11:05:13 PM UTC-4 G Tom wrote:
HI

I wondered if anyone has attempted using plastimatch api in c#. If so I would like to know how to do it.
Actually, I am only interested in a few functionalities such as gamma_dose_comparison
My plan is to first build a small c++ dll for gamma compare, then expose that dll to my c# using a c++/cli wrapper.
Has anyone done something like this ?
Is there an easier route ?

Thanks
GT
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/f82dc854-6986-4a94-92b7-329ba1bc07adn%40googlegroups.com<https://secure-web.cisco.com/1ZEcfnMoxzDC9fQBuaodMp3aU1qR0vmope0_nAPQsccyzFQx30D4GvbHtNfnL1s9A8K8oB28a_2v7JNkjbI0g8lvtZ54ndDIvOb1C7yVIYOEEMncst9b-I6fLfojbhEExhH6GJQJ42HOCtpotBRWO3nKvBecG-V1sgG_OOxp3R6dQYb-UeqNnYTKKPah2MNY9bEfA4agRhMdWxNGEGwDsWRYT7Ljs0Ig2Z4k-OxlwOcT7lpWQgNHf5b8Qnn9A8bmLIgzzupQILPHPqMJInWDU9RwfgVPhm6Ll70g4RsIekZz2VEnpGB0c3xL6KHiS5Aep_7t-Gp9zZnyqkTvYv4B8qQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Ff82dc854-6986-4a94-92b7-329ba1bc07adn%2540googlegroups.com><https://secure-web.cisco.com/1nMUvRx75bZuS94P6HDhhG5SZZ9dWo5ivs6TyoDEl2UA25Du1W4yD6cO84Lox5ZUFzeUrwoQ24Rz7Vt7efjpeQ6PMLAcW7rb-Gihgi3CxBP1scYbz6MpMlYzRC20sTXA5TTI-JPXaB2e2OtiHzkyEPnSRyVyFhXq_1f1_7AxI3FI0RWFcYj9fZ8dlMASxLZw9-iHPiD86Ar8IQMsxB0mU77H6d6ftS2S4JzwOVoSWcYW0xN3R2KtvDYvsqoOgty5Xg7sQ0d0jdPeI33VxVMJEjh6l8h9LAjJRVGUParHbdiPAXkwjevg0_MPtjVg3ZG2GHEqUA_Fqn_NwET4C_e4JPw/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Ff82dc854-6986-4a94-92b7-329ba1bc07adn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline><https://secure-web.cisco.com/1Brg-ta62xkaIGEbeawfeHfC8OluwZ-NEuYVacYhDWgjqTw3t4r1zCasY_8yv7pA0o6qVZa1LOCJH1Bc75_eAi60jlx2KXYGpKQdidMi8Ecb0IBZXS_klhRzGHPSHWO0qGeVrXZpAHS6DAKIZrnE2B98oUdrVyk_qNhCWt8SaYn6-6LfnqIWE9WJjkgtiSTIlE-ISfwtM4eN51tR5J6GFlP5_vLMHWUjZf2eXMLhcUPPNaagoe1pJs3yh3yi75oSKTQoapgu6wcTJGkN3COi3Qh6zOtLMut6pgjnEHTQjXaO4eMYGxewNBPMuCKm42D0j9v3oyjOYM-xhbhyNb5wmBw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/71630148-a693-4538-90ad-b1f87d841402n%40googlegroups.com<https://secure-web.cisco.com/1iYwoJ0LPOdyNLreQzbSoRMZxfxRCdTFonMUE5Ukc92-Xf2uhu_YimvU0dDRqH84IHjbG3QZRPMl6dptgb2KJxpaBcr0iQD2LdqWr-yp18mUbG1jVN4EZIKIrl_J-_JURKpg0jsXnbv5hluiX9VC321UFSFi4Du0vgJKCdqcexPKHWX3i5sH-eLcdw3HLUmDrldvU-mvL0kw2ckVWFvt2FzFLC23A6VUlkUWUnyZJnuhKx5QJ39D7veUPbe19KytGUkej_3k-u3gGbHdEb-2AGx_UzBrWYAu4kksB2t6SPy30I6A9YrSLvFwESfzOTfpzPAR-P3JJ456SZPVNDWzK0g/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F71630148-a693-4538-90ad-b1f87d841402n%2540googlegroups.com><https://secure-web.cisco.com/1EIAyySAJzL0kkToRkb3H5jGNTup_q69xbgXndJ_K_3Nq-Qfb553ukDFDRfyrJYrCAdwf7YIbvScwD8jIboS4Q2JdMIlHckufPR63OCsBr7Kk_cwFWB1NZUe4eGmpOtJqr_Fewzf2DJrHqY6uofMI2ZjbbKIyP0Dh7rQoC5K4jdrhmAouCVgT1LH2cXJhUtW7HOOvShDI5QCE3PgUVA6z1eshIQt5pEmw2NBppifaIxzKQwDevbJ915v-wlUe0eaXfK8ERPHTF6jvjyOrMOV5WE-DICY6qMY6HM3YVOUSG-_ZtjdW3s6b51wtdyOtZd2UgSJV6PFpTu146NU3AcnshQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F71630148-a693-4538-90ad-b1f87d841402n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline><https://secure-web.cisco.com/1WobIAMSM9Aymco8pSFPt8ms0sGJdcNcAa0HyybVrnfECSkcW2XJbQPuXGAPXPx5LCdQZeejE1akUok1eIw4DQWFGkNe1MdhLRvDkpC9QjZiyyuoVeAqe4LxUw0J3k4ui21bpoQemNqgayvuPrTrXyDM1XXa6iS6tm2HRdmlJtlfZ6K2sxyI2EKtmBwafvwY2JpzMnIq9wy_1QJTjgfYpPnpf1tHXwj7tjHRWdXLN1VaOjmS_zNwkE6w5sRg_RWTkr-wvxCrU99vPJpEIgyKKGhuzSiZjWJU0o3Ydp9E81vlDYA82JpS3uzP9BAqfor7GSnpyHd4s2zbZO9bpacBcMQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/BL0PR04MB45935965502FAF560836EBCACF3E9%40BL0PR04MB4593.namprd04.prod.outlook.com<https://secure-web.cisco.com/1haCPyhdzNiYKN9QUsBwzhJXF30VRFJqQH2cukSkI0VTDiTvt_INRX5T2saxxPH9VPJjd5GfK_BeB7v3dTul00w08pXwTazf0PhiyWX0o7nZziVk_pryJBoIZCaVw46VVdlopHcY5VQ9Ufpy1F4XtoY-Gcl54JF_f9J90GaeMVEevXuq0WCTFZ-y4NdyazOyLAJpPaq2sDCOtOWQpxTn25xioCyoSlo8QmGRUvw7pj4Ec6Pz-mFREZ_HirqbeLVIpxti9_P2d4DQd0y6DKxiy_QCTsMmkfKGDCKhlfr2q9n2jNoanNxsEAJ_ABbBkycr10gW-DSdPXLGAb6_FwWvJhQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2FBL0PR04MB45935965502FAF560836EBCACF3E9%2540BL0PR04MB4593.namprd04.prod.outlook.com><https://secure-web.cisco.com/1-R7XtSKEz5W7-efY6molHMCqIPSeANUVnvDSGzWRwG3rC3U8Dr1UieR1yGi3D2iD7WaP54pR4i1_2DCdBEDr1zEfzHcpEX-NQ0YMWPmumZsCBP1hHXoW5Yd-FIws_h614WS7sfSaFLl1tshY38ibXS1_z7xoTQ9d90-08wnJ8ualicLzpjw41dtn-uHwhmytg17-9jmYKstRpe_PlM4hFyVxxcQn-GCmc_FT5ECtuqVBdEcN6VdFLexePBg_iltdCYMndEVj5LsFauZG10RMkhBbXo_TAHJvyTLULIDAgSa7FQXcCAfp9Usvr_kC-2m9ysfDrKYCWq7AVjLtnu_J2g/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2FBL0PR04MB45935965502FAF560836EBCACF3E9%2540BL0PR04MB4593.namprd04.prod.outlook.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline><https://secure-web.cisco.com/1lWYlgHNzhlbxTGrZExv0bNjwwwZDXntrt5FTxZMU3puD_I0Yt9BAVeOZcxr5bvwppOuv2j3ebBQbIyFNVLivAcoBTaGe10_2YCYEBa7Z78_MQSSc6vIIDSgtNx47s1JVEk6xEFdrUGA4HIlmk4KWVv1WwN-Al6TwYeOj-l9gLzklh8qMq3FeVdNfEnWxIoJWH4Rc4lMZM746LJaYnPGtr65ZWHpx_TnREm7kczz4QitUqwOqaZLUe9ioN_KpG5UfIWsdTj76Doix17axC3f7p_eqy-I0JXnaITKt4O9RYZM7oQAdR2JkmCymVpkWCJIMdvCGAFvSzSWQJxbWnPKCMA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/23b976c7-5349-4ae1-8fd9-a06d3f574697n%40googlegroups.com<https://secure-web.cisco.com/17cAKbXfbPnTu9MXsIjTxwleodLHtoY-8soDsoz6sXpgDIT2blmdrNvpDCC8eauVrAA7NIxXLpzxO8MXdhu0TFevzr55Ij_nlx25vXafY9HBv1hd7Ny6JajpKmNT-a_YM6S6ehVEYM0zK87iNVX3e11zRtOu20rVJ20POhId-GKkGPBLGy2Mq5tRIn84-xqhN-ZpgqZNq0AVdguASLS4hJEcwZWA9Dvl4Zo8Cy5vRlVPZ8cT4t3oaEOwmSr3-BvyTTaTaferHCBjQslkwrER1TevSI9l4urYeNL6EWCwsS0MqQ95TUWJxoQEw2zGTLn7XHOmqa_5cbxnLux0KZCiTbQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F23b976c7-5349-4ae1-8fd9-a06d3f574697n%2540googlegroups.com><https://secure-web.cisco.com/10Fcs8NoLu7p9YrAeRffLDwTmp4lDqd3e4S3otNgD5r6dSszdrh_4MrzU56cgyh-zQhypaFTc4GSD2O_ZlGuzumGum1BBlweJCywUznA1BEJyfLav-7rOYEGLhn739NzCPlO7Ky2e_lqblASBTtiPWbLfragaW9Ncyb7YrXxf-T0_2ZiVGKC7qhMLcLQuNVM-oEiv2WTqYKil8WzUB4Z1vszBCQCCBvmVssogdFYYnIEQ2A6egudc9imVHeKCIkw52ENQZl9s4gANaCluXZ8bHdK9B7R14x75g-5xRrQ6dDcRLeZ5bb5EmAfnHHNAbub6W_ivs3xp3ramdpOJr7iy2A/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F23b976c7-5349-4ae1-8fd9-a06d3f574697n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <https://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.


--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/715dcffc-49b0-4d3c-9405-b34b89340540n%40googlegroups.com<https://secure-web.cisco.com/1SsBtAw1W8cnlTT9wJ_R5MbfyWkLOJJaVe1cXdkI0MKX--baKzh0zDKVSYlsAohSMWdkL05pj__VoCqQn2cKuLIDJqHVam2Pkg1-DUSYwT0MLL57sAWWoT7D-vKmtAPBdkDNXDefg-Tb4prQ2jFH1Z_0yaw8Z3HqkOIAy1hiX14lTqRt8792pAn-aa4idy6FJ1JniU0HD_FOL2CMzJQqxm7S5LiENK0nuPdzOLQGSQVVPh7AU7B8HpaSii9D6xd1h8SM49FAE4TIeOMlFWXDNI9i0J2xepsck9O2j5QG1e8y6os4S8BveSvmET1P_1YDF7bIJgMOzLzRsscpJSIKDSQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F715dcffc-49b0-4d3c-9405-b34b89340540n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.

Sharp, Gregory C.

לא נקראה,
2 בדצמ׳ 2022, 10:39:032.12.2022
עד plast...@googlegroups.com
Hi again,

This is now working. I am running on Windows 10 with MSVC 2022.

Also, I added a sample project in examples/csharp which runs the CSharp compiler (csc).
If you wish to try the sample, you need to change the hard-coded paths in CMakeLists.txt. Also you would need to add plastimatch-build/Release into your path when running the executable so it can find the DLLs.

Greg

-----Original Message-----
From: plast...@googlegroups.com <plast...@googlegroups.com> On Behalf Of Sharp, Gregory C.
Sent: Thursday, November 24, 2022 1:58 PM
To: Plastimatch <plast...@googlegroups.com>
Subject: Re: [Plastimatch] Re: Using plastimatch in c# application

External Email - Use Caution

Hi GT,
I was able to reproduce. Looks like Windows-only issue. Update when I know more.
Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of G Tom <gregt...@gmail.com>
Sent: Wednesday, November 23, 2022 1:01 PM
To: Plastimatch
Subject: Re: [Plastimatch] Re: Using plastimatch in c# application

External Email - Use Caution

Hmm

It looks like something is wrong with the itk includes:

1>------ Build started: Project: plmutil-cs, Configuration: Release x64 ------
1>gamma_dose_comparisonCSHARP_wrap.cxx
1>c:\users\testUser01\development\plmm\src\base\itk_direction_type.h(7): fatal error C1083: Cannot open include file: 'itkMatrix.h': No such file or directory
1>Done building project "plmutil-cs.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 31 up-to-date, 0 skipped ==========

When this compiled for you, how did you proceed run the sample c# project example?

Thanks

GT

On Thursday, November 17, 2022 at 3:16:58 PM UTC-5 Sharp, Gregory C. wrote:
Hi GT,

I was able to get it to run. Can you please update your source code and try again?

The method I used is described in this post:

https://secure-web.cisco.com/1bOzKZNglZUNC2E73JD9_NKXP1isoEbtyX5ZkhljPyGKzPLJVoheBtmh3i8ExP19naPIytG4fqSzkP6r1w2OON1Yw8ZMCGdQtV9RMwYuqnlUh9Werm9NrJ2AxDNUyHYPR_QIDzuDatHUxyh_6o75l7rXGT8sM65rFjGyUXsxypM_RISi6vrQSE0MAnPTtA-UajY6eiulV93e3f4sZFeT2Uo-G5E1G57vumR7NGXqxpVAiMjkiSXGzRI1RqbqqrRjlb44oc0LkzK1IuQgrDjEE6pPUVO-FTbdFHvpkF_aqXkDcekBft1y7a_O0BsK1BaaX1LjvZOJyqbXNQ1Kpd_yjKQ/https%3A%2F%2Fiamsorush.com%2Fposts%2Fcpp-csharp-swig%2F<https://secure-web.cisco.com/1ATy3ilXWEisVyJQ5U1_uCZfoFAgda1-uLxwPklrmQCzTyonDbRfkC-SkCLTpVhDOJlgxg-h4HO8HFK57DDdB0oJm3TyMg2IRZsWyCPA_Bg8CvHK_SF7ZfbHV4TziHe8M9eMS_FlDAmdahHpmX8jTIPUqh13v_RSNMjc-oVVdWi2hRVwdkGoL3O3vSOBU_uQzxmAJBNuErG-AHPrhBg7rMb9svsyJdFUC-EizoUa8y9OPfZdwvh1WDcrTQSUGql1h4zLiq2j8LdX4Ei0-SdhLfpipZqvG_L-NU1DOsWGNnDvZmlM2CpKRGZZBw-ENjWAoR-F8BsBgyvop_p3K0Dl7dg/https%3A%2F%2Fiamsorush.com%2Fposts%2Fcpp-csharp-swig%2F>
https://secure-web.cisco.com/1IOJZGUqIN3wKsIOtTVJCnWkdUhojJqRpU4p5GIkhU-NbL4jIaHEB883ehp4WCEale2H80-VvbwndgPnu59__YIh2vUjBZ9Blz10EO_dxn4NGjdWINj35uqUGXulvW7z6FEWGLrGrxnlQ7WrS308Npj_i6RTwPKmOAdwZrN35ApS0BSiFSxKJR5W7OBTRlenkEhRHco54tMr-Rovo-W28bgMWaDI1rp3yikC9V53bjqiPVvf89wSrr-a2PpVhDdikVvyDEVlCOTSbhePzvhxd6a9eOQNSx6d4avSAo5xJuVwhrgFD8h_cDdd9nbv5xSAWDBPE-fIIaEH5Dy0nyBDXow/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fcpp%2Fdotnet%2Fmixed-native-and-managed-assemblies%3Fview%3Dmsvc-170<https://secure-web.cisco.com/1VTptVoYECVXS1EQpZ4IMXI056oCdV66bZxWPq5tHW_JeCizho0eRhQ4dgw61X6xdWbJt2F1OEQgnO1sm-Ny7UiwY9k3zLNlX4yZjNIxzfCGMXRcVr5hT80ilJtoCs0UwQBigzOtTMJ6uCS8cP35Ln7V1U0go93h_MjAV-k23-KL0h1uTK2wJWNoRz69DH3peFUE4RBPLnkQNFRKr0s2aKQRe3mMvpp-GtP1ExuyrrkoGnI0qK_v1MBj_SdQak-CBLE2Bnx6JNQw5HVlvzGkHnfaTIIttbaKrhfiTehomtBHjqjyesmiaFVuZ81D3dUbL5TEDYrYUnI0Z86RJsdDQvQ/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fcpp%2Fdotnet%2Fmixed-native-and-managed-assemblies%3Fview%3Dmsvc-170><https://secure-web.cisco.com/1KEIf86yOlK8QCdFiZciQrFCm8Xd9W68Oz2Z5PCNeg4d44nURvXuH9ZVb4JXzxaBsDHrlRz6cNNxHs735eXMRaWbPk950DWPrEyiLE6E59ObaEHuAVXTl-X192-zBmbSbyc4Tgz03BNTNGNsSIagzJ0PBE1YuGlRIhUc0eDT6qQlbHiNQ4Fwd-xtQtOQUea1_WM2OEDJaDCgR2rVAStlP6fHMWfX5EK98q5fO8mQG_E4RLQjwvsCH4yVPpzAr1jVHSI0X4ivmdmvl9tUhhgDgXP2dLJugtJijx5COG9C1I8iqFP34NfeKXYi3d4MW2m8I-S60vvLtx61ozmA0RfZuiw/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fcpp%2Fdotnet%2Fmixed-native-and-managed-assemblies%3Fview%3Dmsvc-170>
https://secure-web.cisco.com/1RLn901bip9NY1Ez-MXykhuFHDVwpEjxiSoh1we6p0AjfIhTL2dVHDoLGNqti0kqvQTHUDn2tTsd-66Qw-PnV5ULey2DNks5ZDO0mOIdzyQCBIka6P7shxj4GvuBjC_BvrgK6RZPfcPSA7lUwtthopa7_0Z5qJcEIAOVjSwzgbqiB-zTQbmOHGK4kr6MPotSCWnMHM2DKfU5XD3eb4ceVSxOgZHJRTNi62PJEJMHOA40wcsEz9GJ0izUZYu0X_5oaddys615pen_FWc87iUi16lwmJeEOroUvQZkXsCSE0uIqoDIXYvN2eFsKD4LMVGX3hqoAoasQ6Jn2CWe2-ssnZA/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fstandard%2Fnative-interop%2Fpinvoke<https://secure-web.cisco.com/1XCvSBWPRDuCotzxOrIdYo5u_BOQEbMTp-Jo18mG1sI2lI_Aq-DCz5muE85pf-2a_rn6FTH5QsCLN8yqZmRTZVx_lWOZ0VoFclFiIGaQgON94zzI7ovwBCCCklRBTHR7JVDMkSH_5Buexj-1f_BVoosfUxR2Enp4_J64JK25gdMWbC1IM07huXa4Fxi1fTo5GrcmslrSxEOpPcEUmnIWZNVOnBJQzWDVWji3jsSQni4jatyBeYcksEs6ymsacthi0It1HDisAxbPCDaqTEBryZ_WLymEKtwqJVQB5FgBDTWUAKzrWoqIjd5LWn1XN7VqgSV5ADRrvvc3pDgd0Z5d4CA/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fstandard%2Fnative-interop%2Fpinvoke><https://secure-web.cisco.com/1j0IeX2g9SQXfFN_Np1QAA9xEszB--fSxWVzyftCbZVsBlr5g9WTc4Xfb6wlzCKxsDTaocpILFjn80xt1PbX9FY148vuMJRk83wdVerLAxRME5QJXBn1itDNrs54ZXaP9eBQIudgWNXQSXVS7uPZxIMJN7fubuFttAFjTJEbRtQK81VNsNIHPQzkrRiLrsc8mRU6MAvK_ojNy8P6rMiTY-xOuv1xxtEeX1y-G875WHq2N0WnnQ20Mj-zH7x-fzMyezKwoYDbWL6RSQmAgEaVq3Vu1nEtikhdVo7HPby8tq2U4ZdmUgwkKgUWvh32ljA8rYaRRpwrRNbxrZH3Nd8yPcw/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fstandard%2Fnative-interop%2Fpinvoke>

Greg


From: plast...@googlegroups.com <plast...@googlegroups.com> On Behalf Of G Tom
Sent: Saturday, October 22, 2022 9:57 AM
To: Plastimatch <plast...@googlegroups.com>
Subject: [Plastimatch] Re: Using plastimatch in c# application


External Email - Use Caution
Anyone has some pointers on how to use plastimatch lib in c# project ?
Please I need some guidance where to even start.

GT
On Wednesday, October 19, 2022 at 11:05:13 PM UTC-4 G Tom wrote:
HI

I wondered if anyone has attempted using plastimatch api in c#. If so I would like to know how to do it.
Actually, I am only interested in a few functionalities such as gamma_dose_comparison
My plan is to first build a small c++ dll for gamma compare, then expose that dll to my c# using a c++/cli wrapper.
Has anyone done something like this ?
Is there an easier route ?

Thanks
GT
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://secure-web.cisco.com/1yNAxuu4gNcf56EjqOGFfIAWF003Iq-LHlxKOaLrpiMBiVgH5_WUsCHkXBFxdE0fgZtMYjXYGzozFTOJe8ifXp3IBKXkN13tVV0JN2GI-TkbFF1QbvQg-pHi8fDgqCZMzIqVerUa6Q_50MLIMxrQCurBkTUq04Lo-NNtM0bxUufouCzTlgA6EFBTwV3pAFRZZf_AKKF-k_9WuQL7ByOULtrolY_kGT0cUuhb_HCroRMFlLxC2V5qSW8UC73NYlQcN3dFGP9UKmEBa9Vft6V80Ra7o6IysqAOJ43FeIV8Wb6C0c_e2AuHbQeeMelzV5AOPl1G-YsfGs6fEydyDO6Z110SEtA7PDlkYPdzSstj9uEY/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Ff82dc854-6986-4a94-92b7-329ba1bc07adn%2540googlegroups.com<https://secure-web.cisco.com/1ZEcfnMoxzDC9fQBuaodMp3aU1qR0vmope0_nAPQsccyzFQx30D4GvbHtNfnL1s9A8K8oB28a_2v7JNkjbI0g8lvtZ54ndDIvOb1C7yVIYOEEMncst9b-I6fLfojbhEExhH6GJQJ42HOCtpotBRWO3nKvBecG-V1sgG_OOxp3R6dQYb-UeqNnYTKKPah2MNY9bEfA4agRhMdWxNGEGwDsWRYT7Ljs0Ig2Z4k-OxlwOcT7lpWQgNHf5b8Qnn9A8bmLIgzzupQILPHPqMJInWDU9RwfgVPhm6Ll70g4RsIekZz2VEnpGB0c3xL6KHiS5Aep_7t-Gp9zZnyqkTvYv4B8qQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Ff82dc854-6986-4a94-92b7-329ba1bc07adn%2540googlegroups.com><https://secure-web.cisco.com/1nMUvRx75bZuS94P6HDhhG5SZZ9dWo5ivs6TyoDEl2UA25Du1W4yD6cO84Lox5ZUFzeUrwoQ24Rz7Vt7efjpeQ6PMLAcW7rb-Gihgi3CxBP1scYbz6MpMlYzRC20sTXA5TTI-JPXaB2e2OtiHzkyEPnSRyVyFhXq_1f1_7AxI3FI0RWFcYj9fZ8dlMASxLZw9-iHPiD86Ar8IQMsxB0mU77H6d6ftS2S4JzwOVoSWcYW0xN3R2KtvDYvsqoOgty5Xg7sQ0d0jdPeI33VxVMJEjh6l8h9LAjJRVGUParHbdiPAXkwjevg0_MPtjVg3ZG2GHEqUA_Fqn_NwET4C_e4JPw/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Ff82dc854-6986-4a94-92b7-329ba1bc07adn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1NplZax2f8LbQpDEzMWBpbmlxdvFSsttxo51b9NRpnpq1cTJwlcRHJczx4-_neS89slQCnGENFdoG3qyRzpfV5KiP1zNT4k6_vzcFX14a3h6ayAxQLkcNFHpKjr_eKdZ6kDdAicabb0Gb9-0ZYXpsqacFs4hqVREl9_MvMFh1doRXKIU9d3xM_B7f_K29i8Mh0Fzrl92mYqucp5M5disEu5BSCUQ3P19HOdaTKIRrXLehh_ZaWfkRy1CwU_wq6_CwwOPKYRtHJ_RrBIp125oQP7U18BuATVrQ8AGO3IYveNK6e4AkwgAWoiHKA7n9K-nmGKCQoz3LGCdE7wPTA-UPL_d1UAzmKAlwGenuPuiplf4/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline><https://secure-web.cisco.com/1Brg-ta62xkaIGEbeawfeHfC8OluwZ-NEuYVacYhDWgjqTw3t4r1zCasY_8yv7pA0o6qVZa1LOCJH1Bc75_eAi60jlx2KXYGpKQdidMi8Ecb0IBZXS_klhRzGHPSHWO0qGeVrXZpAHS6DAKIZrnE2B98oUdrVyk_qNhCWt8SaYn6-6LfnqIWE9WJjkgtiSTIlE-ISfwtM4eN51tR5J6GFlP5_vLMHWUjZf2eXMLhcUPPNaagoe1pJs3yh3yi75oSKTQoapgu6wcTJGkN3COi3Qh6zOtLMut6pgjnEHTQjXaO4eMYGxewNBPMuCKm42D0j9v3oyjOYM-xhbhyNb5wmBw/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://secure-web.cisco.com/1ohfPWwuHf47r1k_kwhTYmQry5f8emw7OidD27hrszGl5iREdD49lbMhrBet_dcdpGAXsH1Eb8UvHLSFKL2H7i8LANCHywclptyFYXoLLXn-GqkAgZe4vzJHZgUoTMSCfEV8nvfTF_9h2dUcrS1QAq-3aCPr56Rhq57JbVTOdKuQYlPvJ8ipWa1F2GX1td3Qogk2RQtHj4MNouSIMPOsWkBuMyt2k_CMsBO8w9c_qRfQQzfo2dG-u-eLkxyNrbkrvTBDijDoeK8lNqWBWiCAPMHiCInE1-aGTAPAafgvWNLvhod6tUIrsjFlhvhKRqE7SmGQerR4qtAuVkqtxXSjOhb1bHCGI-sHV4p-PxorLryU/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F71630148-a693-4538-90ad-b1f87d841402n%2540googlegroups.com<https://secure-web.cisco.com/1iYwoJ0LPOdyNLreQzbSoRMZxfxRCdTFonMUE5Ukc92-Xf2uhu_YimvU0dDRqH84IHjbG3QZRPMl6dptgb2KJxpaBcr0iQD2LdqWr-yp18mUbG1jVN4EZIKIrl_J-_JURKpg0jsXnbv5hluiX9VC321UFSFi4Du0vgJKCdqcexPKHWX3i5sH-eLcdw3HLUmDrldvU-mvL0kw2ckVWFvt2FzFLC23A6VUlkUWUnyZJnuhKx5QJ39D7veUPbe19KytGUkej_3k-u3gGbHdEb-2AGx_UzBrWYAu4kksB2t6SPy30I6A9YrSLvFwESfzOTfpzPAR-P3JJ456SZPVNDWzK0g/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F71630148-a693-4538-90ad-b1f87d841402n%2540googlegroups.com><https://secure-web.cisco.com/1EIAyySAJzL0kkToRkb3H5jGNTup_q69xbgXndJ_K_3Nq-Qfb553ukDFDRfyrJYrCAdwf7YIbvScwD8jIboS4Q2JdMIlHckufPR63OCsBr7Kk_cwFWB1NZUe4eGmpOtJqr_Fewzf2DJrHqY6uofMI2ZjbbKIyP0Dh7rQoC5K4jdrhmAouCVgT1LH2cXJhUtW7HOOvShDI5QCE3PgUVA6z1eshIQt5pEmw2NBppifaIxzKQwDevbJ915v-wlUe0eaXfK8ERPHTF6jvjyOrMOV5WE-DICY6qMY6HM3YVOUSG-_ZtjdW3s6b51wtdyOtZd2UgSJV6PFpTu146NU3AcnshQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F71630148-a693-4538-90ad-b1f87d841402n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1NplZax2f8LbQpDEzMWBpbmlxdvFSsttxo51b9NRpnpq1cTJwlcRHJczx4-_neS89slQCnGENFdoG3qyRzpfV5KiP1zNT4k6_vzcFX14a3h6ayAxQLkcNFHpKjr_eKdZ6kDdAicabb0Gb9-0ZYXpsqacFs4hqVREl9_MvMFh1doRXKIU9d3xM_B7f_K29i8Mh0Fzrl92mYqucp5M5disEu5BSCUQ3P19HOdaTKIRrXLehh_ZaWfkRy1CwU_wq6_CwwOPKYRtHJ_RrBIp125oQP7U18BuATVrQ8AGO3IYveNK6e4AkwgAWoiHKA7n9K-nmGKCQoz3LGCdE7wPTA-UPL_d1UAzmKAlwGenuPuiplf4/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline><https://secure-web.cisco.com/1WobIAMSM9Aymco8pSFPt8ms0sGJdcNcAa0HyybVrnfECSkcW2XJbQPuXGAPXPx5LCdQZeejE1akUok1eIw4DQWFGkNe1MdhLRvDkpC9QjZiyyuoVeAqe4LxUw0J3k4ui21bpoQemNqgayvuPrTrXyDM1XXa6iS6tm2HRdmlJtlfZ6K2sxyI2EKtmBwafvwY2JpzMnIq9wy_1QJTjgfYpPnpf1tHXwj7tjHRWdXLN1VaOjmS_zNwkE6w5sRg_RWTkr-wvxCrU99vPJpEIgyKKGhuzSiZjWJU0o3Ydp9E81vlDYA82JpS3uzP9BAqfor7GSnpyHd4s2zbZO9bpacBcMQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://secure-web.cisco.com/1HrrBwO3YxfKO3s18dg79xb2kU5G5oRxO7aDAmlaREch3Qjk_JJX7QjjEK4rSLo_nMI34WjV6A18MH5bw_M2Cjrx9jOHJQ6-3IU4V0resbBjLwxk1JbV4iMj3BiNWgMcQjCv2EPw_IfOyNZYBpEj9Z50JNnpS2LFRnxFQgQZbtBCP_8BuE1O2BoJY1UhK1R8-PvAwjb2RP9n8djzAn4iRiolu7G8dZRJHtYzHpP5rmbJn2i6WjSvjoV7Yp8gWro0vqNyt9SYUUtIJg1eH-DG4nmy8ZCGwWISkBwsKxhmfuyluPjnNqy3aqvVyFd40jYo0O1R4QTrb9oMHjR-rqjo_yEp8M4Hsgsi-2rGATfj-Uok/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2FBL0PR04MB45935965502FAF560836EBCACF3E9%2540BL0PR04MB4593.namprd04.prod.outlook.com<https://secure-web.cisco.com/1haCPyhdzNiYKN9QUsBwzhJXF30VRFJqQH2cukSkI0VTDiTvt_INRX5T2saxxPH9VPJjd5GfK_BeB7v3dTul00w08pXwTazf0PhiyWX0o7nZziVk_pryJBoIZCaVw46VVdlopHcY5VQ9Ufpy1F4XtoY-Gcl54JF_f9J90GaeMVEevXuq0WCTFZ-y4NdyazOyLAJpPaq2sDCOtOWQpxTn25xioCyoSlo8QmGRUvw7pj4Ec6Pz-mFREZ_HirqbeLVIpxti9_P2d4DQd0y6DKxiy_QCTsMmkfKGDCKhlfr2q9n2jNoanNxsEAJ_ABbBkycr10gW-DSdPXLGAb6_FwWvJhQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2FBL0PR04MB45935965502FAF560836EBCACF3E9%2540BL0PR04MB4593.namprd04.prod.outlook.com><https://secure-web.cisco.com/1-R7XtSKEz5W7-efY6molHMCqIPSeANUVnvDSGzWRwG3rC3U8Dr1UieR1yGi3D2iD7WaP54pR4i1_2DCdBEDr1zEfzHcpEX-NQ0YMWPmumZsCBP1hHXoW5Yd-FIws_h614WS7sfSaFLl1tshY38ibXS1_z7xoTQ9d90-08wnJ8ualicLzpjw41dtn-uHwhmytg17-9jmYKstRpe_PlM4hFyVxxcQn-GCmc_FT5ECtuqVBdEcN6VdFLexePBg_iltdCYMndEVj5LsFauZG10RMkhBbXo_TAHJvyTLULIDAgSa7FQXcCAfp9Usvr_kC-2m9ysfDrKYCWq7AVjLtnu_J2g/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2FBL0PR04MB45935965502FAF560836EBCACF3E9%2540BL0PR04MB4593.namprd04.prod.outlook.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1NplZax2f8LbQpDEzMWBpbmlxdvFSsttxo51b9NRpnpq1cTJwlcRHJczx4-_neS89slQCnGENFdoG3qyRzpfV5KiP1zNT4k6_vzcFX14a3h6ayAxQLkcNFHpKjr_eKdZ6kDdAicabb0Gb9-0ZYXpsqacFs4hqVREl9_MvMFh1doRXKIU9d3xM_B7f_K29i8Mh0Fzrl92mYqucp5M5disEu5BSCUQ3P19HOdaTKIRrXLehh_ZaWfkRy1CwU_wq6_CwwOPKYRtHJ_RrBIp125oQP7U18BuATVrQ8AGO3IYveNK6e4AkwgAWoiHKA7n9K-nmGKCQoz3LGCdE7wPTA-UPL_d1UAzmKAlwGenuPuiplf4/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline><https://secure-web.cisco.com/1lWYlgHNzhlbxTGrZExv0bNjwwwZDXntrt5FTxZMU3puD_I0Yt9BAVeOZcxr5bvwppOuv2j3ebBQbIyFNVLivAcoBTaGe10_2YCYEBa7Z78_MQSSc6vIIDSgtNx47s1JVEk6xEFdrUGA4HIlmk4KWVv1WwN-Al6TwYeOj-l9gLzklh8qMq3FeVdNfEnWxIoJWH4Rc4lMZM746LJaYnPGtr65ZWHpx_TnREm7kczz4QitUqwOqaZLUe9ioN_KpG5UfIWsdTj76Doix17axC3f7p_eqy-I0JXnaITKt4O9RYZM7oQAdR2JkmCymVpkWCJIMdvCGAFvSzSWQJxbWnPKCMA/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .

Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://secure-web.cisco.com/1nrryTMZ0gQ6kQEkEeNG0F0TCSIh99LC7-LFBWhKwNkzHPGR8iVxAA-EAWRLibtX4DQUEQMBLfxgWjye7FlatMlH5UOvacICN3E64YENJ-RtBYJWh7uh9tkWtEtD2387VEbpr1OJeGEv3oPtyYqMFu3T9TKinJucn52w5iOgH9fZOeJICMsyEYBQJ1heUsUd20GqPEG1RP6WARzL1mSJnSJIo8_XFWMgFr2TYuiKgqZhDcs66Vz0RcamaCInQeaf7n2FJYuyYuUyjs817m5i_Wo2en52A9CVkNZJAeRejSjftrCgdAt1qOzoQzCm-go5QXlsR5oVYaL1d1gZPc0GXqYIJu-KZKJVWB51uie2edfk/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F23b976c7-5349-4ae1-8fd9-a06d3f574697n%2540googlegroups.com<https://secure-web.cisco.com/17cAKbXfbPnTu9MXsIjTxwleodLHtoY-8soDsoz6sXpgDIT2blmdrNvpDCC8eauVrAA7NIxXLpzxO8MXdhu0TFevzr55Ij_nlx25vXafY9HBv1hd7Ny6JajpKmNT-a_YM6S6ehVEYM0zK87iNVX3e11zRtOu20rVJ20POhId-GKkGPBLGy2Mq5tRIn84-xqhN-ZpgqZNq0AVdguASLS4hJEcwZWA9Dvl4Zo8Cy5vRlVPZ8cT4t3oaEOwmSr3-BvyTTaTaferHCBjQslkwrER1TevSI9l4urYeNL6EWCwsS0MqQ95TUWJxoQEw2zGTLn7XHOmqa_5cbxnLux0KZCiTbQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F23b976c7-5349-4ae1-8fd9-a06d3f574697n%2540googlegroups.com><https://secure-web.cisco.com/10Fcs8NoLu7p9YrAeRffLDwTmp4lDqd3e4S3otNgD5r6dSszdrh_4MrzU56cgyh-zQhypaFTc4GSD2O_ZlGuzumGum1BBlweJCywUznA1BEJyfLav-7rOYEGLhn739NzCPlO7Ky2e_lqblASBTtiPWbLfragaW9Ncyb7YrXxf-T0_2ZiVGKC7qhMLcLQuNVM-oEiv2WTqYKil8WzUB4Z1vszBCQCCBvmVssogdFYYnIEQ2A6egudc9imVHeKCIkw52ENQZl9s4gANaCluXZ8bHdK9B7R14x75g-5xRrQ6dDcRLeZ5bb5EmAfnHHNAbub6W_ivs3xp3ramdpOJr7iy2A/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F23b976c7-5349-4ae1-8fd9-a06d3f574697n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1NplZax2f8LbQpDEzMWBpbmlxdvFSsttxo51b9NRpnpq1cTJwlcRHJczx4-_neS89slQCnGENFdoG3qyRzpfV5KiP1zNT4k6_vzcFX14a3h6ayAxQLkcNFHpKjr_eKdZ6kDdAicabb0Gb9-0ZYXpsqacFs4hqVREl9_MvMFh1doRXKIU9d3xM_B7f_K29i8Mh0Fzrl92mYqucp5M5disEu5BSCUQ3P19HOdaTKIRrXLehh_ZaWfkRy1CwU_wq6_CwwOPKYRtHJ_RrBIp125oQP7U18BuATVrQ8AGO3IYveNK6e4AkwgAWoiHKA7n9K-nmGKCQoz3LGCdE7wPTA-UPL_d1UAzmKAlwGenuPuiplf4/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> <https://secure-web.cisco.com/1NplZax2f8LbQpDEzMWBpbmlxdvFSsttxo51b9NRpnpq1cTJwlcRHJczx4-_neS89slQCnGENFdoG3qyRzpfV5KiP1zNT4k6_vzcFX14a3h6ayAxQLkcNFHpKjr_eKdZ6kDdAicabb0Gb9-0ZYXpsqacFs4hqVREl9_MvMFh1doRXKIU9d3xM_B7f_K29i8Mh0Fzrl92mYqucp5M5disEu5BSCUQ3P19HOdaTKIRrXLehh_ZaWfkRy1CwU_wq6_CwwOPKYRtHJ_RrBIp125oQP7U18BuATVrQ8AGO3IYveNK6e4AkwgAWoiHKA7n9K-nmGKCQoz3LGCdE7wPTA-UPL_d1UAzmKAlwGenuPuiplf4/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline<https://secure-web.cisco.com/16Imqwt5JD7Y8U5QSWN4kzDVfcYPevncVsij_0StchHkTYBVAl9-B7iNSFJsbPqOtEeYdfxyp1d7Z321pymcge6Iky3ezcVQ_bDwo6LxL5Fedq_bkQHTg0AYkyU3gB2RUMPSmlyJCmVhMCAYDVHQAIEwK1XG3yrrRPYQlfM6yK0EnTCYf13KAG9xYWicoVvp5iD-_q_6yAQeOt-V1HBmc1leB6puS9kbniYqC9iWEhBXGBN_6fLWAiox8822jvsuPW_jZB_ZvQz5gOeMcHeIX6a40wjxAA5xsHQa03rmVT6TvUY1sO0RkXtcB7phQQw0f0blO6wly_Law9qm1FmogFQ/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.


--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://secure-web.cisco.com/1qjf252vVkH8wwA18d8YoXtxorH2qRP5HVo9lRZU0n2bf-joMvtK8kYIxg4ORxj9rpdlv7ZB9zqI5jKUp4_ZJb0ysxLBWBKLHhBKLWOyD_tephI0MZ7Sd3y-J8yoggm1f7EpUR3nRanqETqJ9dvRtpJIj_soksejxxGZo7OHPBgQxyHb7HIe7XuVHwmTlerUGOq9DE3vMGEfX_wHEUAavtys8q1kwwk_YI21dfNTwxX5DqOSchkcRF94mjWizCFNaRWPmW58X3GncEN1Ol3MBfo6Bcuo23XlEuPww3iDApFRpLSsejMrqtjjrL58f37_KLMKeV00zmttQv9fdSNHgfb4_5SgxmAHLUn-3eehPYw4/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F715dcffc-49b0-4d3c-9405-b34b89340540n%2540googlegroups.com<https://secure-web.cisco.com/1SsBtAw1W8cnlTT9wJ_R5MbfyWkLOJJaVe1cXdkI0MKX--baKzh0zDKVSYlsAohSMWdkL05pj__VoCqQn2cKuLIDJqHVam2Pkg1-DUSYwT0MLL57sAWWoT7D-vKmtAPBdkDNXDefg-Tb4prQ2jFH1Z_0yaw8Z3HqkOIAy1hiX14lTqRt8792pAn-aa4idy6FJ1JniU0HD_FOL2CMzJQqxm7S5LiENK0nuPdzOLQGSQVVPh7AU7B8HpaSii9D6xd1h8SM49FAE4TIeOMlFWXDNI9i0J2xepsck9O2j5QG1e8y6os4S8BveSvmET1P_1YDF7bIJgMOzLzRsscpJSIKDSQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2F715dcffc-49b0-4d3c-9405-b34b89340540n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1NplZax2f8LbQpDEzMWBpbmlxdvFSsttxo51b9NRpnpq1cTJwlcRHJczx4-_neS89slQCnGENFdoG3qyRzpfV5KiP1zNT4k6_vzcFX14a3h6ayAxQLkcNFHpKjr_eKdZ6kDdAicabb0Gb9-0ZYXpsqacFs4hqVREl9_MvMFh1doRXKIU9d3xM_B7f_K29i8Mh0Fzrl92mYqucp5M5disEu5BSCUQ3P19HOdaTKIRrXLehh_ZaWfkRy1CwU_wq6_CwwOPKYRtHJ_RrBIp125oQP7U18BuATVrQ8AGO3IYveNK6e4AkwgAWoiHKA7n9K-nmGKCQoz3LGCdE7wPTA-UPL_d1UAzmKAlwGenuPuiplf4/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline <https://secure-web.cisco.com/1NplZax2f8LbQpDEzMWBpbmlxdvFSsttxo51b9NRpnpq1cTJwlcRHJczx4-_neS89slQCnGENFdoG3qyRzpfV5KiP1zNT4k6_vzcFX14a3h6ayAxQLkcNFHpKjr_eKdZ6kDdAicabb0Gb9-0ZYXpsqacFs4hqVREl9_MvMFh1doRXKIU9d3xM_B7f_K29i8Mh0Fzrl92mYqucp5M5disEu5BSCUQ3P19HOdaTKIRrXLehh_ZaWfkRy1CwU_wq6_CwwOPKYRtHJ_RrBIp125oQP7U18BuATVrQ8AGO3IYveNK6e4AkwgAWoiHKA7n9K-nmGKCQoz3LGCdE7wPTA-UPL_d1UAzmKAlwGenuPuiplf4/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://secure-web.cisco.com/13MG6zHlOU9wrwHLKZ2lwW_ue25qSD4YEYPz1pVANSJ8KsjySr3_WKgzQDsQUnkZ698CORdDz_vgBqp6-w_MYx3odRZGmx9_el20-yzO2V1X9v462gt_k_euimcWzqap43LEnGABOtrueqSKGnJ_SmGeg8FHXRpIVQgDcSPavLYR2wC2YuSjj5BL4tbbIAC_hGT4XB9BGCraezU2dOzQx5eRsRZVVPVKXoo9hynSdGjnp__SN1vZ2rnmYDXk1J5Bq_YHzBPXD5Dg6JI5sTCfPz8ShTJYDYTXvaRxAmh3oBnAnavTYwq01GQIukTcAsW4F-SuLZtFmLhaZVJn0vQ1UaAGdDVZ6ghwVuKrs4ghDgtE/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2FBL0PR04MB459395C7B20D9152248913B7CF0F9%2540BL0PR04MB4593.namprd04.prod.outlook.com

G Tom

לא נקראה,
7 בדצמ׳ 2022, 15:17:187.12.2022
עד Plastimatch
Hi Greg, 

Compilation went well. The only think I had to do was change the startup project to "csharp-example" project.

However, no matter whether I set my user PATH  to include the  plastimatch\build or ran the example directly in \plastimatch\build directory, I kept getting the "Unable to load DLL 'plmutil-cs'" error:
Not sure why it can't find plmutil-cs.dll, even when it is in the same folder.

So bottom line is, it does not run successfully for me.

Thanks for working on this

GT

===
Hello, World!

Unhandled Exception: System.TypeInitializationException: The type initializer for 'plastimatchPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'plmutil-cs': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at plastimatchPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_plastimatch(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
   at plastimatchPINVOKE.SWIGExceptionHelper..cctor()
   --- End of inner exception stack trace ---
   at plastimatchPINVOKE.SWIGExceptionHelper..ctor()
   at plastimatchPINVOKE..cctor()
   --- End of inner exception stack trace ---
   at plastimatchPINVOKE.new_Gamma_dose_comparison()
   at Application.Program.Main(String[] args)
==

Sharp, Gregory C.

לא נקראה,
7 בדצמ׳ 2022, 15:32:157.12.2022
עד plast...@googlegroups.com

Hi GT,

 

The error message might be a bit misleading.  You need all the dependency DLLs in the path (or same folder): plmutil.dll plmbase.dll, plmsys.dll.  Also if you compiled ITK or DCMTK as shared libraries, those DLLs need to be found.

The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline .

G Tom

לא נקראה,
7 בדצמ׳ 2022, 16:45:197.12.2022
עד Plastimatch
You are absolutely right. I had copied all DLLs into the folder but forgot the DCMTK DLLs. Now everything runs fine.

Now, I want to use this Gamma_dose_comparison in my own independent c# project.  The set_compare_image() method needs  a SWIGTYPE_p_FloatImageType__Pointer image. 
My independent project uses vtk images so I guess I will need to create a SWIGTYPE_p_FloatImageType__Pointer image from my vtkimage. 
Any ideas how to go about this conversion ?

Thanks 

GT

G Tom

לא נקראה,
14 בדצמ׳ 2022, 13:16:4014.12.2022
עד Plastimatch
Hi Greg,
How exactly do I use this SWIGTYPE_p_FloatImageType__Pointer ? 
It seems I need to wrap more things to be able to use it. 

Thanks 

Sharp, Gregory C.

לא נקראה,
14 בדצמ׳ 2022, 13:33:5514.12.2022
עד plast...@googlegroups.com

Hi GT,

 

I need to do a bit more wrapping before you can use it.  And also I need to provide C# access to the 3D memory array. 

 

Could you describe (roughly) what kinds of operations you might want?  So far I'm assuming you will want to load images, calc gamma, display gamma, change parameters, and save gamma, and should will wrap those parts first.

G Tom

לא נקראה,
14 בדצמ׳ 2022, 16:43:0814.12.2022
עד Plastimatch
HI Greg

Thanks for your message. I have been reading on wrapping the smart pointer myself but that seems really complicated for me. 
Actually my use case is that I have a c# project with a vtk (aktiviz) pipeline producing some images that I wanted to compare with the gamma function.  These are both 2D and 3D images. 
Ideally I wanted to apply the gamma comparison in memory rather than first exporting images to file. Other tools in plastimatch are very interesting for my pipeline too including registration. 

Thanks 

Sharp, Gregory C.

לא נקראה,
14 בדצמ׳ 2022, 17:23:3114.12.2022
עד plast...@googlegroups.com

Hi GT,

Excellent, thank you for the feedback.  The test was successful, we are close.

G Tom

לא נקראה,
1 בפבר׳ 2023, 10:09:401.2.2023
עד Plastimatch
Hi Greg, 
I have been able to make a small example of the gamma comparison that works in c#. The code works by reading the 2D dose inputs from file and running the gamma comparison on them. 
However, I wanted to be able to create the input images in memory i.e from an array of doubles. It looks like for this, one has to wrap the Volume class for c# or is there a way to create a Plm_image from an array of doubles and of course associated information about pixel spacing, size origin e.t.c ? 

Thanks 

== working example == 

using System;
namespace Application
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            var fn1 = "P:/export/$DynChA/RD.$DynChA.dcm";
            var fn2 = "P:/export/$DynChA/RD.$DynChA_Xshift3mm.dcm";
            
            var pi1 = Plm_image.New();
            pi1.load_native(fn1);
            var pi2 = Plm_image.New();
            pi2.load_native(fn2);
            
            var gdc = new Gamma_dose_comparison();
            gdc.set_dose_difference_tolerance(0.03f);
            gdc.set_spatial_tolerance(3.0f);

            gdc.set_reference_image(pi1);
            gdc.set_compare_image(pi2);
            gdc.run();
            var result = gdc.get_report_string();
            Console.WriteLine(result);
            gdc.get_gamma_image().save_image("P:/export/$DynChA/gamma_$DynChA_Xshift3mm.tiff");
        }
    }
}


Sharp, Gregory C.

לא נקראה,
1 בפבר׳ 2023, 14:26:591.2.2023
עד plast...@googlegroups.com

Hi GT,

 

Indeed.  Voxel-level access is needed for the function to be useful. 

 

There seem to be a few options.  (1) Wrap the ITK data structure and access it directly from C#, (2) Copy into an instance of the plastimatch Volume class, (3) Copy into a new C# class.

 

Are there any popular Medical Imaging applications / frameworks for C#?  If so, converting into its API could also be an appealing approach.

G Tom

לא נקראה,
13 בפבר׳ 2023, 15:17:5813.2.2023
עד Plastimatch
Hi Greg, 

thanks for your reply. Option 1 looks hardest. Option 3 might be the easiest but needs an intermediate class to handle the conversion. 
I have been playing with option 1 but I am not getting any where; I wrapped a %template(FloatImageType3D) itk::Image < float, 3 >; but could not use it in the c# side.
Any ideas ?

In terms of popular medical image applications/framework  for c#, the only thing I can think of is SimpleITK but I am not sure how integrating simpleitk and plastimatch will look like.
Thanks 

GT
השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות