Help:
How to get the pixel pionts' coordinates automatically from esp images? In other words, how to generate a file with all the pixel pionts' coordinates, automatically?
Help! Thank you!!
How to get the pixel pionts' coordinates automatically?
Re: How to get the pixel pionts' coordinates automatically?

Welcome fruitfall!
I don't know of a way to do this at present, although I'm not exactly an expert

I think that node coordinates are shown in the XML Editor (Edit menu), along with all kinds of other info. But I think that the image would need to be in SVG format, although again, I'm not very familiar with that "side" of Inkscape. I don't have and can't view EPS images, or I would simply open one and look in XML Editor.
I suppose an extension could be written to generate the coordinates, if you happen to know how to write code/extensions. But again, I think SVG format would be needed.
Anyone please correct me if I'm wrong

Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: How to get the pixel pionts' coordinates automatically?
Thank you for your quick reply!
I am a junior user on inkscape, and I am not able to write code/extensions to generate the coordinates.
I need to get the coordinates (X,Y) of the lines' nodes in the svg images (for example, see the attached image sa1_t.svg transformed from a eps image). Because there are too many nodes (for precision) for every line (1000 nodes for every line, i.e., 2000 coordinates for every line in the image, and I have a few images to deal with), I need to know a useful method to generate files with the coordinates of lines' nodes, automatically. Then I can redraw the lines for my aim with some softwares, since I get the files with every node's X and Y coordinates.
And I think this tool or method would be very useful and important to many people like me.
If you have some convenient tools or methods, would you please tell me?
Thank you very much!!
I am a junior user on inkscape, and I am not able to write code/extensions to generate the coordinates.
I need to get the coordinates (X,Y) of the lines' nodes in the svg images (for example, see the attached image sa1_t.svg transformed from a eps image). Because there are too many nodes (for precision) for every line (1000 nodes for every line, i.e., 2000 coordinates for every line in the image, and I have a few images to deal with), I need to know a useful method to generate files with the coordinates of lines' nodes, automatically. Then I can redraw the lines for my aim with some softwares, since I get the files with every node's X and Y coordinates.
And I think this tool or method would be very useful and important to many people like me.
If you have some convenient tools or methods, would you please tell me?
Thank you very much!!
- Attachments
-
- sa1_t.svg
- (158.83 KiB) Downloaded 179 times
Re: How to get the pixel pionts' coordinates automatically?
Thank you very much!!
brynn wrote:
Welcome fruitfall!
I don't know of a way to do this at present, although I'm not exactly an expert![]()
I think that node coordinates are shown in the XML Editor (Edit menu), along with all kinds of other info. But I think that the image would need to be in SVG format, although again, I'm not very familiar with that "side" of Inkscape. I don't have and can't view EPS images, or I would simply open one and look in XML Editor.
I suppose an extension could be written to generate the coordinates, if you happen to know how to write code/extensions. But again, I think SVG format would be needed.
Anyone please correct me if I'm wrong
Re: How to get the pixel pionts' coordinates automatically?
I am a junior user on inkscape, and I am not able to write code/extensions to generate the coordinates.
I need to get the coordinates (X,Y) of the lines' nodes in the svg images (for example, see the attached image sa1_t.svg transformed from a eps image). Because there are too many nodes (for precision) for every line (1000 nodes for every line, i.e., 2000 coordinates for every line in the image, and I have a few images to deal with), I need to know a useful method to generate files with the coordinates of lines' nodes, automatically. Then I can redraw the lines for my aim with some softwares, since I get the files with every node's X and Y coordinates.
And I think this tool or method would be very useful and important to many people like me.
If you have some convenient tools or methods, would you please tell me?
Thank you very much!!
I need to get the coordinates (X,Y) of the lines' nodes in the svg images (for example, see the attached image sa1_t.svg transformed from a eps image). Because there are too many nodes (for precision) for every line (1000 nodes for every line, i.e., 2000 coordinates for every line in the image, and I have a few images to deal with), I need to know a useful method to generate files with the coordinates of lines' nodes, automatically. Then I can redraw the lines for my aim with some softwares, since I get the files with every node's X and Y coordinates.
And I think this tool or method would be very useful and important to many people like me.
If you have some convenient tools or methods, would you please tell me?
Thank you very much!!
brynn wrote:
Welcome fruitfall!
I don't know of a way to do this at present, although I'm not exactly an expert![]()
I think that node coordinates are shown in the XML Editor (Edit menu), along with all kinds of other info. But I think that the image would need to be in SVG format, although again, I'm not very familiar with that "side" of Inkscape. I don't have and can't view EPS images, or I would simply open one and look in XML Editor.
I suppose an extension could be written to generate the coordinates, if you happen to know how to write code/extensions. But again, I think SVG format would be needed.
Anyone please correct me if I'm wrong
- Attachments
-
- sa1_t.svg
- (158.83 KiB) Downloaded 146 times
Re: How to get the pixel pionts' coordinates automatically?
Hi again!
I'm sorry that I don't know any way to do this automatically. I understand your problem, but I just don't know how to do it, other than writing a unique extension for that purpose. I don't have the skills needed to write extensions, or I might try to write one for you. I suppose it's possible that someone has written such an extension, and either has it hosted elsewhere, or has not even made public. If you have good searching skills, and such an extension exists, you might find it.
When I said "Anyone please correct me if I'm wrong", it was an invitation for others to join the discussion, because I'm really not very well informed about your apparent field of study (which judging by your graph, is physics or some other high level science?). I was hoping somone else might be able to suggest another program that could list the coordinates of nodes, or at least have a discussion about the project. But apparently no one has any more or better response than mine. There has been a bit of a lull of activity in these forums, during the holidays just past. So it may be that someone will show up over the next weeks or months who could help.
I see by your attachment that you do have the image in SVG format, so that solves one of my original concerns
(Slightly off-topic: There IS a way in Inkscape to reduce the number of nodes, without drasically changing the shape of the curve. But that is not exactly your issue. Plus I'm guessing you need absolute precision and accuracy for graphs like this.)
At the risk of diving into the deep end, when I'm already floundering in the shallows (
) maybe we can broaden the topic, with the purpose of potentially meeting your goal in some other more "creative" way. Why is it that you need to know or have listed the coordinates of every node in this project?
Yes, it sounds like some kind of statistical or other mathematical analysis, which others have surely used in scientific or statistical research. So I'm thinking that there must be a way to do it, whether with Inkscape, or some other app/program. Perhaps consulting with co-workers, or fellow students, professors, (cohorts, whatever
) etc., might be productive??
But anyway for now, take us to the next step in you project, ie - why you need the coordinates, or for what will they be used, and maybe someone can help you think of another way to get there.
Hang in there
I'm sorry that I don't know any way to do this automatically. I understand your problem, but I just don't know how to do it, other than writing a unique extension for that purpose. I don't have the skills needed to write extensions, or I might try to write one for you. I suppose it's possible that someone has written such an extension, and either has it hosted elsewhere, or has not even made public. If you have good searching skills, and such an extension exists, you might find it.
When I said "Anyone please correct me if I'm wrong", it was an invitation for others to join the discussion, because I'm really not very well informed about your apparent field of study (which judging by your graph, is physics or some other high level science?). I was hoping somone else might be able to suggest another program that could list the coordinates of nodes, or at least have a discussion about the project. But apparently no one has any more or better response than mine. There has been a bit of a lull of activity in these forums, during the holidays just past. So it may be that someone will show up over the next weeks or months who could help.
I see by your attachment that you do have the image in SVG format, so that solves one of my original concerns

(Slightly off-topic: There IS a way in Inkscape to reduce the number of nodes, without drasically changing the shape of the curve. But that is not exactly your issue. Plus I'm guessing you need absolute precision and accuracy for graphs like this.)
At the risk of diving into the deep end, when I'm already floundering in the shallows (

And I think this tool or method would be very useful and important to many people like me.
Yes, it sounds like some kind of statistical or other mathematical analysis, which others have surely used in scientific or statistical research. So I'm thinking that there must be a way to do it, whether with Inkscape, or some other app/program. Perhaps consulting with co-workers, or fellow students, professors, (cohorts, whatever

But anyway for now, take us to the next step in you project, ie - why you need the coordinates, or for what will they be used, and maybe someone can help you think of another way to get there.
Hang in there

Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: How to get the pixel pionts' coordinates automatically?
brynn wrote:Hi again!
I'm sorry that I don't know any way to do this automatically. I understand your problem, but I just don't know how to do it, other than writing a unique extension for that purpose. I don't have the skills needed to write extensions, or I might try to write one for you. I suppose it's possible that someone has written such an extension, and either has it hosted elsewhere, or has not even made public. If you have good searching skills, and such an extension exists, you might find it.
When I said "Anyone please correct me if I'm wrong", it was an invitation for others to join the discussion, because I'm really not very well informed about your apparent field of study (which judging by your graph, is physics or some other high level science?). I was hoping somone else might be able to suggest another program that could list the coordinates of nodes, or at least have a discussion about the project. But apparently no one has any more or better response than mine. There has been a bit of a lull of activity in these forums, during the holidays just past. So it may be that someone will show up over the next weeks or months who could help.
I see by your attachment that you do have the image in SVG format, so that solves one of my original concerns
(Slightly off-topic: There IS a way in Inkscape to reduce the number of nodes, without drasically changing the shape of the curve. But that is not exactly your issue. Plus I'm guessing you need absolute precision and accuracy for graphs like this.)
At the risk of diving into the deep end, when I'm already floundering in the shallows () maybe we can broaden the topic, with the purpose of potentially meeting your goal in some other more "creative" way. Why is it that you need to know or have listed the coordinates of every node in this project?
And I think this tool or method would be very useful and important to many people like me.
Yes, it sounds like some kind of statistical or other mathematical analysis, which others have surely used in scientific or statistical research. So I'm thinking that there must be a way to do it, whether with Inkscape, or some other app/program. Perhaps consulting with co-workers, or fellow students, professors, (cohorts, whatever) etc., might be productive??
But anyway for now, take us to the next step in you project, ie - why you need the coordinates, or for what will they be used, and maybe someone can help you think of another way to get there.
Hang in there
Thank you very much for your response and advice!! I see this just now. I am so sorry.
The image was from the scientific data in my simulations of my research project (astrophysics and space physics). But unfortunately, I lost my data because of the super-computers' formatting and renewing. It will spend much time if I redo the numerical simulations. And I need the data in short time. That's why I need the coordinates of the nodes in the image.
As you said, 'There IS a way in Inkscape to reduce the number of nodes, without drasically changing the shape of the curve.' Maybe it is a useful alternative method to gain some very important nodes' coordinates, to fulfil my aim and expectation. But I don't know how to do this. So would you please show me how to do this with Inkscape?
Thank you very much!!
Re: How to get the pixel pionts' coordinates automatically?
Hi fruitfall,
Huh?? You know, my dad sold very early computing equipment (precursors to true computers) to banks for data processing. I even helped him "program" the equipment (which consisted of snapping metal....I don't know -- cogs, I guess, onto long metal bars, in a certain pattern). I don't know what he would have to say about "super-computers". But he always said this: "Computers are only as smart at their programmers." I think I might look further into this computer's "formatters and renewers". That said though, I guess you didn't back up your work??
Hmmmm....well to answer your most immediate question, now that I understand why you need the coordinates, I think that reducing the number of nodes is probably not the best solution. Because while it doesn't change the shape of the curve drastically, it does change it, and the remaining node coordinates WILL change. (It doesn't just remove some nodes and leave others in place. As Inkscape tries to maintain the curve, it moves the remaining nodes to presumably strategic positions, which will not be their original positions. I have no idea how it decides which ones to remove, which to move, and to where.)
If you still want to try this, please select the path, and then Path menu > Simplify. But remember that many nodes will be removed, and others moved, in order to maintain the shape of the curve. If you're now thinking instead, to acquire the coordinates of only certain important nodes, I think you should probably leave the path alone, and note the coordinates of only those important nodes.
However, I still think that there must already exist some way to do this. I just can't believe there's no way to do it! Maybe not with Inkscape, but I'm sure there must be a way. I've just spent 20 minutes or so searching the internet. I've found this program GNUPLOT (http://www.gnuplot.info/) which plots coordinates to create graph lines/paths. So I have to wonder whether it might also do the reverse???
In this discussion: http://inkscape-forum.andreas-s.net/topic/177180, someone is describing an extention which will extract the formula from any given curve (line/path). To do that, the coordinates must be obtained, I would think. The discussion is from 2009, so maybe the extension exists by now?
In the first message on this page: http://groups.google.com/group/eggbotus ... 8641455b7e, someone is describing an extension: "What I came up with is attached below. It includes complete code to do most of the tedious heavy lifting (e.g., traversing the SVG paths and reducing the path data down to lists of absolute (x,y) coordinates)." It sounds like just what you want!
And the description of this program, Inkscape Map: http://sourceforge.net/projects/inkscapemap/, is "A simple tools to generate HTML imagemap or coordinates list (eg. to be inserted into a database) from an Inkscape SVG file." sounds like it might do what you want.
I don't have time, but you could investigate further.....into any or all these 4 "leads", and even do more research on your own.
Really, I think there already exists a way to do this. Unfortunately, my search skills are quite lacking, or maybe I could find the answer right away.
Good luck
But unfortunately, I lost my data because of the super-computers' formatting and renewing.
Huh?? You know, my dad sold very early computing equipment (precursors to true computers) to banks for data processing. I even helped him "program" the equipment (which consisted of snapping metal....I don't know -- cogs, I guess, onto long metal bars, in a certain pattern). I don't know what he would have to say about "super-computers". But he always said this: "Computers are only as smart at their programmers." I think I might look further into this computer's "formatters and renewers". That said though, I guess you didn't back up your work??
Hmmmm....well to answer your most immediate question, now that I understand why you need the coordinates, I think that reducing the number of nodes is probably not the best solution. Because while it doesn't change the shape of the curve drastically, it does change it, and the remaining node coordinates WILL change. (It doesn't just remove some nodes and leave others in place. As Inkscape tries to maintain the curve, it moves the remaining nodes to presumably strategic positions, which will not be their original positions. I have no idea how it decides which ones to remove, which to move, and to where.)
If you still want to try this, please select the path, and then Path menu > Simplify. But remember that many nodes will be removed, and others moved, in order to maintain the shape of the curve. If you're now thinking instead, to acquire the coordinates of only certain important nodes, I think you should probably leave the path alone, and note the coordinates of only those important nodes.
However, I still think that there must already exist some way to do this. I just can't believe there's no way to do it! Maybe not with Inkscape, but I'm sure there must be a way. I've just spent 20 minutes or so searching the internet. I've found this program GNUPLOT (http://www.gnuplot.info/) which plots coordinates to create graph lines/paths. So I have to wonder whether it might also do the reverse???
In this discussion: http://inkscape-forum.andreas-s.net/topic/177180, someone is describing an extention which will extract the formula from any given curve (line/path). To do that, the coordinates must be obtained, I would think. The discussion is from 2009, so maybe the extension exists by now?
In the first message on this page: http://groups.google.com/group/eggbotus ... 8641455b7e, someone is describing an extension: "What I came up with is attached below. It includes complete code to do most of the tedious heavy lifting (e.g., traversing the SVG paths and reducing the path data down to lists of absolute (x,y) coordinates)." It sounds like just what you want!
And the description of this program, Inkscape Map: http://sourceforge.net/projects/inkscapemap/, is "A simple tools to generate HTML imagemap or coordinates list (eg. to be inserted into a database) from an Inkscape SVG file." sounds like it might do what you want.
I don't have time, but you could investigate further.....into any or all these 4 "leads", and even do more research on your own.
Really, I think there already exists a way to do this. Unfortunately, my search skills are quite lacking, or maybe I could find the answer right away.
Good luck

Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design