% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{predict_separable_GP}
\alias{predict_separable_GP}
\title{Generating predictive mean from image matrix}
\usage{
predict_separable_GP(output_mat, parameters, seed = NULL)
}
\arguments{
\item{output_mat}{Image matrix}

\item{parameters}{Range and nugget parameters estimated using \code{separable_GP_param_est()}}

\item{seed}{Seed for reproducibility (default is NULL)}
}
\value{
Returns a list containing:
\item{predmean_mat}{Predictive mean matrix}
\item{grad1}{Horizontal gradient}
\item{grad2}{Vertical gradient}
\item{grad_magnitude}{Gradient magnitude}
\item{param}{Gaussian parameters}
}
\description{
Generates the predictive mean for an image matrix using a Gaussian process.
}
\examples{
# File path to TIF, PNG, or JPEG image
library(magick)
img_path <- system.file("extdata", "example_cells.jpg", package = "FastSegmentation")
img <- image_read(img_path)
img_matrix <- as.numeric(img[[1]])[1:100,1:100,1]

# GP parameter estimation
img_gp_parameters <- separable_GP_param_est(img_matrix)

# Predictive mean and gradient calculation
predmean_results <- predict_separable_GP(img_matrix, img_gp_parameters$param)

}
