Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 chanting in the Monastery: (4)
As of 2025-06-21 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.