dicengine / dice

Digital Image Correlation Engine (DICe): a stereo DIC application that runs on Mac, Windows, and Linux
Other
341 stars 125 forks source link

Throw test issue #80

Closed ucgvsdr closed 6 years ago

ucgvsdr commented 6 years ago

I tried to run some sample pictures on DICE and when I run the program, DICE execution is failed and the details shown on the console as the following:

Throw number = 1

Throw test that evaluated to true: comm_->get_rank()==0&&subset_centroids_x.size()<=0

or

Throw number = 1

Throw test that evaluated to true: num_matches < 10

Error, not enough features matched for feature matching initializer

bvanmieg commented 6 years ago

Hi ucgvsdr,

A little bit more detail would be helpfull.

Did you use the installer DICE of did you build from source? On which OS? Which pictures did you use? 2D or stereo DIC? What is the size of the region of interest you selected? What is your subset size?

If you can add the input files, I can try and run it for you to countercheck.

Regards, Bart

ucgvsdr commented 6 years ago

Hi Bart,

Thank you for the reply. I use the installer of DICe but I did not use the sample pictures insteaded I used my own pictures.

I just wonder if there any requirements of using the input pictures like the resolution or size something?

Regards, Peiying

2018年5月30日 上午6:25,"bvanmieg" notifications@github.com写道:

Hi ucgvsdr,

A little bit more detail would be helpfull.

Did you use the installer DICE of did you build from source? On which OS? Which pictures did you use? 2D or stereo DIC? What is the size of the region of interest you selected? What is your subset size?

If you can add the input files, I can try and run it for you to countercheck.

Regards, Bart

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dicengine/dice/issues/80#issuecomment-393111037, or mute the thread https://github.com/notifications/unsubscribe-auth/Al5-UEvDLUVWfo4X8kDuB9_CMHONGh4jks5t3nOUgaJpZM4USboW .

dicengine commented 6 years ago

Hi Guys,

Depending on your pictures, the feature matching initializer can fail if you’re using white speckles on a dark background. There are other things that would cause it to fail, but not typically due to the resolution. Can you post one of your photos?

Thanks, Dan

On May 30, 2018, at 4:55 AM, ucgvsdr notifications@github.com<mailto:notifications@github.com> wrote:

Hi Bart,

Thank you for the reply. I use the installer of DICe but I did not use the sample pictures insteaded I used my own pictures.

I just wonder if there any requirements of using the input pictures like the resolution or size something?

Regards, Peiying

2018年5月30日 上午6:25,"bvanmieg" notifications@github.com<mailto:notifications@github.com>写道:

Hi ucgvsdr,

A little bit more detail would be helpfull.

Did you use the installer DICE of did you build from source? On which OS? Which pictures did you use? 2D or stereo DIC? What is the size of the region of interest you selected? What is your subset size?

If you can add the input files, I can try and run it for you to countercheck.

Regards, Bart

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dicengine/dice/issues/80#issuecomment-393111037, or mute the thread https://github.com/notifications/unsubscribe-auth/Al5-UEvDLUVWfo4X8kDuB9_CMHONGh4jks5t3nOUgaJpZM4USboW .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/dicengine/dice/issues/80#issuecomment-393118729, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOf5uh95d3KTSt6r_ED7O2JPYaEW-PLZks5t3nq8gaJpZM4USboW.

ucgvsdr commented 6 years ago

Hi Dan

Since I tried to run the DICe for my upcoming project and I applied some testing pictures to see if the program works. It was a sprayed steel coupon

Regards,

发件人: Digital Image Correlation Engine (DICe) 发送时间: 2018年5月30日 8:10 收件人: dicengine/dice 抄送: ucgvsdr; Author 主题: Re: [dicengine/dice] Throw test issue (#80)

Hi Guys,

Depending on your pictures, the feature matching initializer can fail if you’re using white speckles on a dark background. There are other things that would cause it to fail, but not typically due to the resolution. Can you post one of your photos?

Thanks, Dan

On May 30, 2018, at 4:55 AM, ucgvsdr notifications@github.com<mailto:notifications@github.com> wrote:

Hi Bart,

Thank you for the reply. I use the installer of DICe but I did not use the sample pictures insteaded I used my own pictures.

I just wonder if there any requirements of using the input pictures like the resolution or size something?

Regards, Peiying

2018年5月30日 上午6:25,"bvanmieg" notifications@github.com<mailto:notifications@github.com>写道:

Hi ucgvsdr,

A little bit more detail would be helpfull.

Did you use the installer DICE of did you build from source? On which OS? Which pictures did you use? 2D or stereo DIC? What is the size of the region of interest you selected? What is your subset size?

If you can add the input files, I can try and run it for you to countercheck.

Regards, Bart

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dicengine/dice/issues/80#issuecomment-393111037, or mute the thread https://github.com/notifications/unsubscribe-auth/Al5-UEvDLUVWfo4X8kDuB9_CMHONGh4jks5t3nOUgaJpZM4USboW .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/dicengine/dice/issues/80#issuecomment-393118729, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOf5uh95d3KTSt6r_ED7O2JPYaEW-PLZks5t3nq8gaJpZM4USboW.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dicengine commented 6 years ago

Any chance you could post one of the pictures? That would help a lot in figuring out what's wrong.

ucgvsdr commented 6 years ago

131

Here is the picture

dicengine commented 6 years ago

My guess is that there isn’t enough contrast in the image for the default SSIG setting. The SSIG measures the amount of contrast in each subset and it prevents DICe from placing a subset where the SSIG is low. If you have the ability to change the lighting in your experiment that could help. Otherwise, I would lower the SSIG threshold in the software settings on the right hand side of the GUI. As you change the SSIG threshold, you can check where the subsets will be placed by clicking the checkmark in a circle on the upper left hand side of the GUI in the View Control box. This is the preview SSIG mask button that will display yellow circles where the SSIG threshold is good enough to place a subset.

On May 30, 2018, at 8:00 AM, ucgvsdr notifications@github.com<mailto:notifications@github.com> wrote:

[131]https://user-images.githubusercontent.com/39747152/40724909-2ad33124-63f0-11e8-9b0f-5eeb69f5c2ac.jpg

Here is the picture

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dicengine/dice/issues/80#issuecomment-393172827, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOf5uo493m3IAbS_AsH2BXLLNnwcNleFks5t3qXlgaJpZM4USboW.

dicengine commented 6 years ago

Another alternative is to make the SSIG threshold zero, and define an ROI over the area you want to correlate. This will skip the SSIG check and include all subsets, regardless of how poor the contrast is.

On May 30, 2018, at 8:29 AM, Turner, Daniel Zack dzturne@sandia.gov<mailto:dzturne@sandia.gov> wrote:

My guess is that there isn’t enough contrast in the image for the default SSIG setting. The SSIG measures the amount of contrast in each subset and it prevents DICe from placing a subset where the SSIG is low. If you have the ability to change the lighting in your experiment that could help. Otherwise, I would lower the SSIG threshold in the software settings on the right hand side of the GUI. As you change the SSIG threshold, you can check where the subsets will be placed by clicking the checkmark in a circle on the upper left hand side of the GUI in the View Control box. This is the preview SSIG mask button that will display yellow circles where the SSIG threshold is good enough to place a subset.

On May 30, 2018, at 8:00 AM, ucgvsdr notifications@github.com<mailto:notifications@github.com> wrote:

[131]https://user-images.githubusercontent.com/39747152/40724909-2ad33124-63f0-11e8-9b0f-5eeb69f5c2ac.jpg

Here is the picture

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dicengine/dice/issues/80#issuecomment-393172827, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOf5uo493m3IAbS_AsH2BXLLNnwcNleFks5t3qXlgaJpZM4USboW.

ucgvsdr commented 6 years ago

Okay. I turned the SSIG threshold to zero and it can process the picture. Again, Thanks for the help.

asteppke commented 6 years ago

Thank you for all the work on DICE.

I had a similar issue though, the feature matching did not work on some images with the message

Throw test that evaluated to true: num_matches < 10

Error, not enough features matched for feature matching initializer

The images looked OK though and were in .tif format. I converted the images to .png and tried again. This time it all works out nicely with exactly the same settings. Is there any reason for this behavior?

dicengine commented 6 years ago

My guess is that the conversion from .tif to .png changed the contrast range or there is some reason within the OpenCV code that prefers the .png format. I’ll do some digging on this. Thanks for the heads up.

-Dan

On Jun 25, 2018, at 8:43 AM, asteppke notifications@github.com<mailto:notifications@github.com> wrote:

Thank you for all the work on DICE.

I had a similar issue though, the feature matching did not work on some images with the message

Throw test that evaluated to true: num_matches < 10

Error, not enough features matched for feature matching initializer

The images looked OK though and were in .tif format. I converted the images to .png and tried again. This time it all works out nicely with exactly the same settings. Is there any reason for this behavior?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/dicengine/dice/issues/80#issuecomment-399977007, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOf5ugskTfhySiWl-t6QzLsyA8ZEhsbXks5uAPcugaJpZM4USboW.