This file is indexed.

/usr/share/octave/site/m/pfstools/pfs_write_rgb.m is in octave-pfstools 2.1.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
function pfs_write_rgb( fileName, R, G, B )
  ## Write an hdr image file (formats accepted by pfsout). You can
  ## specify additional options in fileName, such as
  ## "--compression=PXR24" for OpenEXR files. Check manual pages of
  ## pfsout* commands for the list of available options. 
  ## 
  ##  pfs_write_rgb( fileName, R, G, B )
 
  unwind_protect
    fid = popen( sprintf( "pfsout %s", fileName ), "w" );
    
    pfs = pfsopen( fid, size( R ) );
    pfs.channels = struct;
    [pfs.channels.X pfs.channels.Y pfs.channels.Z] = ...
        pfstransform_colorspace( "RGB", R, G, B, "XYZ" );   
    pfsput( pfs );
  unwind_protect_cleanup
    pfsclose( pfs );
    fclose( fid );
  end_unwind_protect    
      
endfunction