help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary image from a plot


From: Maria Jose Casas Serrano
Subject: Re: Binary image from a plot
Date: Fri, 10 Jul 2020 11:12:57 +0200

Hi Przemek,

My goal is to compare the images to see their similarities. I’m modelling an evolutionary process and the fitness function needs to receive the binary matrix of the images, then it calculates the coincidence of their values (1 for background and 0 for foreground). Perhaps it sounds like I'm “re-inventing the wheel"… but I found some way to do it without losing much time. 

Thanks for your tip and your time. 

Regards,

Maria 

On 7 Jul 2020, at 22:43, Przemek Klosowski via Help-octave <help-octave@gnu.org> wrote:

On 7/7/20 6:37 AM, Maria Jose Casas Serrano wrote:
The software I’m doing, prints some plots that I save as .bmp and with -mono and -bestfit parameters. When I read them with “imread” function, I can see that it’s an indexed image and the matrix contains values [0 255]. I would like to convert it to binary but without using the “image” package. 
(Yes, I know that this sounds weird but I would like to find a solution without using it, if possible. It’s due to some incompatibilities with some computers in the lab which cannot be updated to the last Octave version nor installing packages.)
Since you want  to namipulate images without using the image package, let me ask what is the goal. Do you want to simply see if they are different? Maybe you could just do system('md5sum image1 image2')? and if you want to see particular differences in images, why not store the plot data along with plot images, and compare the data?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]