> Johannes Bauer (JB) wrote:
>JB> Hi group,
>JB> I'm confused, kind of. The application I'm writing currently reads data
>JB> from a FITS file and should display it on a gtk window. So far I have:
>JB> [...]
>JB> pb = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height)
>JB> pb_pi
In article <75dgm1f16hqn...@mid.dfncis.de>,
Johannes Bauer wrote:
>
>So now I want to copy the fits_pixels -> pb_pixels. Doing
>
>pb_pixels = fits_pixels
>
>works and is insanely fast, however the picture looks all screwed-up
>(looks like a RGB picture of unititialized memory, huge chunks of 0s
>
MRAB schrieb:
>>
>>
>>
>> So now I want to copy the fits_pixels -> pb_pixels. Doing
>>
>> pb_pixels = fits_pixels
>>
> This simply makes pb_pixels refer to the same object as fits_pixels. It
> doesn't copy the values into the existing pb_pixels object.
Oh okay, I was thinking of C++ std::vector
Johannes Bauer wrote:
Hi group,
I'm confused, kind of. The application I'm writing currently reads data
from a FITS file and should display it on a gtk window. So far I have:
[...]
pb = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height)
pb_pixels = pb.get_pixels_array()
print(type
Hi group,
I'm confused, kind of. The application I'm writing currently reads data
from a FITS file and should display it on a gtk window. So far I have:
[...]
pb = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height)
pb_pixels = pb.get_pixels_array()
print(type(fits_pixels))
print(typ