2
$\begingroup$

I am modelling the path of a rock deposited onto a glacier and its englacial flow with the ice within the glacier in MATLAB. I am doing this with the 2D advection equation. However, I do get some unwanted artefacts / noise in my results, especially at the left of the attached image. I tried a 2D median filter, but this lead to bad results (second image). Does anyone have an idea of my options?

Thanks!

enter image description here

enter image description here

$\endgroup$
2
  • $\begingroup$ Can you share some properties on the noise? What generates it? $\endgroup$
    – Royi
    Jan 19, 2023 at 19:44
  • $\begingroup$ Hi, in your model, is it possible to treat the rock as a point and calculate the trajectory instead of a density distribution? $\endgroup$
    – Mohammad M
    Feb 20, 2023 at 20:29

2 Answers 2

0
$\begingroup$

Convert to grayscale and try morphological operations, such as imerode.

$\endgroup$
0
$\begingroup$

Considering there is only 1 rock, you could find the peak, and set the value to zero at other coordinates.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.