help-octave
[Top][All Lists]
Advanced

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

Re: Figure handle is very slow, saving impossible


From: christoph
Subject: Re: Figure handle is very slow, saving impossible
Date: Wed, 12 Apr 2017 03:57:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

Hello,

your script works for me as well. So the problem is, printing seems to fail with uint8 class but works well with doubles.

so

pic_1=im2double(pic_1)

has done the job in my case!

I just don't know why?

thank you so much for your help!


On 2017-04-07 18:16, Kire Pudsje wrote:


On Thu, Apr 6, 2017 at 7:53 AM, christoph <address@hidden> wrote:

Here are my scripts,

Case1:

pic_1=imread("/opt/octave/pics/clipped.tiff")

........

.......

hold "on"
imagesc(pic_1)
plot([CoordsPoints{:}](2,:),[CoordsPoints{:}](1,:),"ro")
hold "off"

print -dpng /opt/octave/pics/test.png ----->>>fails!!

notice:

                      Dimention       class

<<<<pic_1   4800x3600x3  uint8>>>>



I do not experience problems.
I tried to make a self contained version of your script.
The following should fail for you.

sz = [4800,3600];
pic1=peaks(max(sz));
pic1(:,:,2) = pic1';
pic1(:,:,3) = fliplr(pic1(:,:,1));
pic1=pic1(1:sz(1),1:sz(2),:);
imagesc(pic1);
hold on;
plot(sz(2)*rand(100,1), sz(1)*rand(100,1),'ro');
hold off;
print -dpng test.png

Could you verify if it is size related?
What happens if you choose sz = [480,360] ?


reply via email to

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