Approximation of a functional curve in a digital image

Approximation of a functional curve in a digital image - Messages

#1 Posted: 6/8/2021 6:11:10 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

From the textbooks to a SMath evaluable function

Digital Image Function Analysis.sm (538 KiB) downloaded 90 time(s).
Digital Image Function Analysis.pdf (1 MiB) downloaded 92 time(s).

Clipboard01.jpg

Image for the analysis:

imgPerformance.jpg

Best regards.
Alvaro.
1 users liked this post
overlord 6/15/2021 4:12:00 AM
#2 Posted: 6/9/2021 10:46:57 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

From the textbooks to a SMath evaluable function

Digital Image Function Analysis.sm (538 KiB) downloaded 90 time(s).
Digital Image Function Analysis.pdf (1 MiB) downloaded 92 time(s).

Best regards.
Alvaro.


Couldn't make it work with linux.
Will check with a windows machine.
Yet, if I understood what it does...
WOW, this is sick. How is it possible?
I am just simply amazed by this.
Very good job.
#3 Posted: 6/9/2021 12:44:14 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Wrote

Wrote

From the textbooks to a SMath evaluable function

Digital Image Function Analysis.sm (538 KiB) downloaded 90 time(s).
Digital Image Function Analysis.pdf (1 MiB) downloaded 92 time(s).

Best regards.
Alvaro.


Couldn't make it work with linux.
Will check with a windows machine.
Yet, if I understood what it does...
WOW, this is sick. How is it possible?
I am just simply amazed by this.
Very good job.



Hi overlord. Thanks. Do you download the image "imgPerformance.jpg" and put it in the same directory than the sm file? It is the only issue specific for linux that I can see. I know, it is showed instead given the link for download. Here it is as zip file:

imgPerformance.zip (60 KiB) downloaded 53 time(s).

Best regards.
Alvaro.
#4 Posted: 6/9/2021 12:59:47 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Yes, I have downloaded the image already.
It starts to give error on Ms:scan(Mc,k1,255)
`Argument doesn't meet to expected kind`.
Perhaps the image2rgb doesn't work under linux.
M matrix is filled with zeros, nothing else.
#5 Posted: 6/9/2021 2:47:49 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Wrote

Yes, I have downloaded the image already.
It starts to give error on Ms:scan(Mc,k1,255)
`Argument doesn't meet to expected kind`.
Perhaps the image2rgb doesn't work under linux.
M matrix is filled with zeros, nothing else.



Hi. I remember now that the worksheet also use Mean, from statics plugin, and I put it definition at left margin, but disable. Maybe it's that one. This version have embed image matrix, and except for the XYPlot, I guess that it have not any other plugin.

Digital Image Function Analysis - Image embeded.sm (4 MiB) downloaded 62 time(s).

Best regards.
Alvaro.
#6 Posted: 6/9/2021 3:40:59 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Hi. I remember now that the worksheet also use Mean, from statics plugin, and I put it definition at left margin, but disable. Maybe it's that one. This version have embed image matrix, and except for the XYPlot, I guess that it have not any other plugin.

Best regards.
Alvaro.


I have statistical plugins with linux.
In windows, with same plugins and setting it solve.
And matrix is not full of zeros.
image2rgb is not working under linux.
#7 Posted: 6/9/2021 6:05:00 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Try this suggestion:
1. Plug one of those dirty image in Paint.
2. zap the X,Y grids.
3. Capture WinGrab and note the X, Y pixels for further scaling.
4. Insert picture, Digitize, clean ... finish project.

Page12 Digitize.sm (1 MiB) downloaded 61 time(s).


#8 Posted: 6/14/2021 10:35:47 AM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Wrote

From the textbooks to a SMath evaluable function
...
Best regards.
Alvaro.


OMG,
I may try to rehash an old problem that Jean helped me with in MathCAD that I could never get to work.
First, why the error in the SM file? I just downloaded and opened using Portable version on both Windows 10 and Linux.
digital.PNG
#9 Posted: 6/14/2021 1:10:49 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Hi. You can try to eval only Ms outside the plot for read the error, if it is not an specific error related with the plot.

Best regards.
Alvaro.
#10 Posted: 6/14/2021 4:15:44 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

Wrote

Hi. You can try to eval only Ms outside the plot for read the error, if it is not an specific error related with the plot.

Best regards.
Alvaro.


Ms is not defined. As you can see, I changed kc as well.
digital2.PNG


#11 Posted: 6/14/2021 5:46:10 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Nope. The message says that "M" is not defined, not Ms. And M is for load the image, not for doing some process. Try this version, with the image embeded in the worksheet:

https://en.smath.com/forum/yaf_postsm71146_Approximation-of-a-functional-curve-in-a-digital-image.aspx#post71146

and check if you can update the plugins for images.

Best regards.
Alvaro.
#12 Posted: 6/14/2021 6:05:21 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I may try to rehash an old problem that Jean helped me with in MathCAD that I could never get to work.


That one is over 15 years old !
Three visible modules ... done.
Capture, clean in Paint [very quick], save as *.BMP ...
Take Elsid ... Jean

Digitize Elsid.sm (24 KiB) downloaded 64 time(s).
#13 Posted: 6/15/2021 7:19:49 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

First, why the error in the SM file? I just downloaded and opened using Portable version on both Windows 10 and Linux.


I have tried the embedded image version with linux (not portable).
The image2rgb() doesn't work with image importing. But image data matrix embedded version works fine.
If image data added version don't work for you, Maybe the portable plugins are old and not suitable.

Regards
#14 Posted: 6/16/2021 8:15:51 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Elsid,
My offer via Paint is valid, but delicate from too thick graph.
My other tool is via Tracer 15 [freeware]
Paste image as is in Tracer, capture at will pixels.
Each capture is stacked in vector, obviously noisy.
Once in hand, Ksmooth the Y vector ...
We have Ksmooth as a Smath utilities.
Once smoothed, spline ... Job done.
Have a good day ... Jean
#15 Posted: 6/16/2021 11:55:45 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

The image2rgb() doesn't work with image importing.



image2rgb has a procedure for fast image reading that somehow doesn't works in mono

I'll try to update a beta version with an alternative code ASAP.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#16 Posted: 6/19/2021 8:14:15 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Just released a beta version of the Custom Functions plugin for latest Stable SMath Studio. Please test if now it works under linux.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
overlord 6/20/2021 1:29:00 AM
#17 Posted: 6/20/2021 1:29:20 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Just released a beta version of the Custom Functions plugin for latest Stable SMath Studio. Please test if now it works under linux.


It worked for my linux setup.
Thanks.
1 users liked this post
Davide Carpi 6/20/2021 9:45:00 AM
#18 Posted: 6/23/2021 12:21:39 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

My other tool is via Tracer 15 [freeware]
Paste image as is in Tracer, capture at will pixels.


... once pixels in hand ► Ksmooth ► final fit.

Digitize Trcer 15.PNG
#19 Posted: 6/23/2021 9:42:21 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

My other tool is via Tracer 15 [freeware]


Tracer is a great tool.
Contact the Author Marcus Karolewski from googling.
You will find his e-mail in case of problem downloading.
In fact, Marcus sent me Tracer 15 years ago.
Also, he is the Author of Spline2XV6. Latest Tracer 2012.
Spline2XV6 was implemented by Mathsoft DAEP on my suggestion.
Jean.
  • New Posts New Posts
  • No New Posts No New Posts