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.