Skip to main content
1-Visitor
March 16, 2019
Solved

How to synchronize all this images?

  • March 16, 2019
  • 3 replies
  • 4921 views

please check attached mathcad file, if you see each column are slightly shifting (some constant amount of shift) but to sync. all those columns ?

Best answer by Werner_E

Would the attached file help?

B1.pngB2.png

3 replies

24-Ruby IV
March 16, 2019

We need the image.txt file!

1-Visitor
March 16, 2019

sorry for that!

24-Ruby IV
March 16, 2019

Try work with matrix

2im.jpg

21-Topaz II
March 16, 2019

Hi,

The term "synchronize" only creates confusion and is not really appropriate since it is used for temporal events such as synchronizing clocks. Here, it is a question of intervening on an image and modifying it. You could use the  Mathcad's "warp" operator to deform the image, otherwise I wouldn't know what to do.

Werner_E25-Diamond IAnswer
25-Diamond I
March 16, 2019

Would the attached file help?

B1.pngB2.png

1-Visitor
March 16, 2019

Yes definitely, thanks a lot Werner_E

25-Diamond I
March 16, 2019

Please keep in mind that the method I use is very bold and has no technical meaning.

I define as "center" of each data column the position between the highest and lowest value.

Then I align all those 16 "centers" at a position you can chose (the second argument of the function I provided) and then deal with the upper and the lower part of the data in completely different ways - stretching and compressing the data as needed. Its not a uniform transformation for the whole data column.

Best seen in the plot below which shows the transformation for the second data column (index 1). Notice the bend at the "center" position in the blue curve. The left part is stretched and the right part compressed which means that there is a significant frequency change at the new "center" position which might be undesirable.

Not sure what this means for your application but I guess there sure should be a better method to achieve the desired result.

B.png