Hi,
Have you take a look into the classes.
If they have a threadedGenerateData, they are already multi-threaded. If not they are threadable.
Best
Mickaël
wijuk pruksuriya <[email protected]> a écrit :

Hello

I have a problem about multi-thread. In my code use SURF to detect keypoint
and use KeyPointSetsMatchingFilter to matching its.

I want to know how can I use ImageToSURFKeyPointSetFilter<http://www.orfeo-toolbox.org/doxygen/otbImageToSURFKeyPointSetFilter_8h_source.html> and KeyPointSetsMatchingFilter<http://www.orfeo-toolbox.org/doxygen/otbKeyPointSetsMatchingFilter_8h_source.html> with
multi-threads.



typedef otb::ImageToSIFTKeyPointSetFilter<ImageType, PointSetType>
ImageToSIFTKeyPointSetFilterType;

ImageToSURFKeyPointSetFilterType::Pointer filter1 =
ImageToSURFKeyPointSetFilterType::New();
ImageToSURFKeyPointSetFilterType::Pointer filter2 =
ImageToSURFKeyPointSetFilterType::New();

filter1->SetInput(fixedReader->GetOutput());
filter1->SetOctavesNumber(octaves);
filter1->SetScalesNumber(scales);
filter1->SetNumberOfThreads(6);

filter2->SetInput(movingReader->GetOutput());
filter2->SetOctavesNumber(octaves);
filter2->SetScalesNumber(scales);
filter2->SetNumberOfThreads(1);
euclideanMatcher->SetInput1(filter1->GetOutput());
euclideanMatcher->SetInput2(filter2->GetOutput());
euclideanMatcher->SetDistanceThreshold(secondOrderThreshold);
euclideanMatcher->SetUseBackMatching(useBackMatching);
euclideanMatcher->Update();


Thank for suggestion.

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to