Morphological skeleton
Posted: 2012-08-20T13:36:23-07:00
By chance I have found this article:
"Distance to Skeleton" and "Skeleton using Autotrace"
http://www.imagemagick.org/Usage/morpho ... e_skeleton
And I say, wow! That is exactly the same principle that I looked for few months ago. It is very similar to idea what I had before, when I thought about a way to compress image data. How one could generate little size image file (like greyscale PNG) to compress color PNG file. Example images:
http://www.icpdr.org/main/sites/default ... pe_map.png
For case, that you have images like that, and there is quite many of the images and you wanna save file size. For example Imagine, you need to store data of rivers, but you have them in some format, that takes more space in the image because there are all the blue pixels.
My idea was to use the same method, as the "Distance to Skeleton" is, but to make it more sophisticated: to use "compression" - a possibility to generate the original image from the skeleton. My idea was not only to find the skeleton, but also keep information about original line width. That would be possible if the line would change from one color into shades of the color in which it is. Possibly - the more the original line was wide, the more the skeleton pixel would be darker. Some limitations are here sure, but this is that you can think about. The image would contain much less pixels (but more colors), because the skeleton saves the pixels. I believe it would be interesting way of storing data in that case that there are many or files.
"Distance to Skeleton" and "Skeleton using Autotrace"
http://www.imagemagick.org/Usage/morpho ... e_skeleton
And I say, wow! That is exactly the same principle that I looked for few months ago. It is very similar to idea what I had before, when I thought about a way to compress image data. How one could generate little size image file (like greyscale PNG) to compress color PNG file. Example images:
http://www.icpdr.org/main/sites/default ... pe_map.png
For case, that you have images like that, and there is quite many of the images and you wanna save file size. For example Imagine, you need to store data of rivers, but you have them in some format, that takes more space in the image because there are all the blue pixels.
My idea was to use the same method, as the "Distance to Skeleton" is, but to make it more sophisticated: to use "compression" - a possibility to generate the original image from the skeleton. My idea was not only to find the skeleton, but also keep information about original line width. That would be possible if the line would change from one color into shades of the color in which it is. Possibly - the more the original line was wide, the more the skeleton pixel would be darker. Some limitations are here sure, but this is that you can think about. The image would contain much less pixels (but more colors), because the skeleton saves the pixels. I believe it would be interesting way of storing data in that case that there are many or files.