Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Imagecat - show color images in a terminal

by etj (Priest)
on Feb 02, 2024 at 20:55 UTC ( [id://11157485]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Imagecat - show color images in a terminal
in thread Imagecat - show color images in a terminal

Using FlexRaw to read the PV of a scalar as an ndarray is very clever, nice work! However, a more idiomatic way might be to replace the last 4 lines with (untested):
$image = zeroes byte, $im->getwidth, $im->getheight; $im->write( data => $image->get_dataref, type => 'raw' ); $image->upd_data;
Another way to read images into PDL with lots of capability is PDL::OpenCV::Imgcodecs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11157485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2025-12-14 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (93 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.