Skip to content
Snippets Groups Projects
Commit b5393767 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

do not apply crosscorr to the bottom interface

parent c3666aea
No related branches found
No related tags found
1 merge request!2715Replace single crossCorrelationLength parameter by CrosscorrelationModel individual for each interface
Pipeline #155942 passed
......@@ -124,8 +124,9 @@ std::unique_ptr<MultiLayer> GUI::ToCore::itemToSample(const SampleItem& sampleIt
roughItem->certainInterlayerModel()->createModel();
std::unique_ptr<CrosscorrelationModel> crosscorrelation;
if (const auto* item = roughItem->certainCrosscorrModel())
crosscorrelation = item->createModel();
if (!layerItem->isBottomLayer())
if (const auto* item = roughItem->certainCrosscorrModel())
crosscorrelation = item->createModel();
LayerRoughness roughness(autocorrelation.get(), interlayer.get(), crosscorrelation.get());
sample->addLayerWithTopRoughness(*layer, roughness);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment