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 14:18:37 +0200


> On 10 Jul 2020, at 14:16, N <nicklas.karlsson17@gmail.com> wrote:
> 
>> HI Nicklas, 
>> 
>> I use print instead of saveas when saving the plot but as far as I know they 
>> are very similar, aren’t they?: 
>> # save as png monochrome
>>        print(plothandler, filenameimage, "-mono”);
> 
> Yes at least for these cases they produce the same result I can't imagine it 
> can make a difference.
> 
>> And when reading the image I’m using imread but the image has grayscale 
>> color type and I should convert it to binary for the fitness function. 
>> Finally I got it but at the moment I sent the first email I was a bit stuck 
>> on this.
> 
> Grayscale is like 253 shades of gray plus black and white. Binary is zero or 
> one. You may compare grayscale matrix against a number to get a binary 
> result, black and white picture.


Yeah, that exactly was what I did finally. I used a threshold to convert to 
white or black. 

Thanks!!

Maria


reply via email to

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