Image Display
Display an image using Hugin.Plotting.imshow. Takes an image path as a command-line argument.
(*---------------------------------------------------------------------------
Copyright (c) 2026 The Raven authors. All rights reserved.
SPDX-License-Identifier: ISC
---------------------------------------------------------------------------*)
open Hugin
let () =
if Array.length Sys.argv < 2 then (
Printf.printf "Usage: %s <image_path>\n" Sys.executable_name;
exit 1);
let image_path = Sys.argv.(1) in
let img = Nx_io.load_image image_path in
let fig = imshow ~title:"Image" img in
show fig