text table color values to image
Posted: 2017-05-10T10:12:32-07:00
Hi, this is my first post.
Debian 8, imagemagick gui do not work.
I need to compute ndvi from a jpg photo.
https://it.wikipedia.org/wiki/Normalize ... tion_Index
I converted jpg in txt by terminal commands:
convert filtrorosso.jpg filtrorosso.txt
sed -e 's/ //g' -e 's/(//g' -e 's/)//g' -e 's/:/,/g' -e 's/#/,/g' filtrorosso.txt>filtrorosso2.txt
then used filtrorosso2.txt by R-cran to evaluate colors etc.
The image obtained is still a 1280,1024,255,srgb but now I need to convert a table color values to an image
I show you the first ten lines of the table to convert
0,0,255,82,12
1,0,255,85,15
2,0,255,87,17
3,0,255,88,18
4,0,255,85,15
5,0,255,83,13
6,0,255,81,13
7,0,255,81,15
8,0,255,80,17
9,0,255,77,15
10,0,255,73,11
The first two colons are the coordinate the last three are the color values
I meen to create a txt file and then use convert to make a jpg or similar.
Can you help me?
Thanke you in advance.
Debian 8, imagemagick gui do not work.
I need to compute ndvi from a jpg photo.
https://it.wikipedia.org/wiki/Normalize ... tion_Index
I converted jpg in txt by terminal commands:
convert filtrorosso.jpg filtrorosso.txt
sed -e 's/ //g' -e 's/(//g' -e 's/)//g' -e 's/:/,/g' -e 's/#/,/g' filtrorosso.txt>filtrorosso2.txt
then used filtrorosso2.txt by R-cran to evaluate colors etc.
The image obtained is still a 1280,1024,255,srgb but now I need to convert a table color values to an image
I show you the first ten lines of the table to convert
0,0,255,82,12
1,0,255,85,15
2,0,255,87,17
3,0,255,88,18
4,0,255,85,15
5,0,255,83,13
6,0,255,81,13
7,0,255,81,15
8,0,255,80,17
9,0,255,77,15
10,0,255,73,11
The first two colons are the coordinate the last three are the color values
I meen to create a txt file and then use convert to make a jpg or similar.
Can you help me?
Thanke you in advance.