|
From: | Adam Majewski |
Subject: | Re: imagesc and scaled matrix |
Date: | Sun, 06 Nov 2011 15:22:20 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15 |
On 06.11.2011 14:16, Martin Helm wrote:
Am Sonntag, 6. November 2011, 13:54:37 schrieb Adam Majewski:X = rand(100,100).*(2^14); size(X); B = imagesc(X); colorbar size(B)Looking into the code for imagesc I see that what it returns is a graphics handle not the scaled matrix. I guess it was simply forgotten to change the doc string when this change was made. You can see the content of B with get(B)
OK. So I try : X = rand(100,100).*(2^14); size(X); hB = imagesc(X); colorbar B=get(hB); MyImage=B.cdata; saveimage("test.ppm", B.cdata,"ppm"); # save image to file MyImage is a copy of X. It is not scaled matrix. Where is scaled matrix ? (or how I can make it ?) Regards Adam
[Prev in Thread] | Current Thread | [Next in Thread] |