I am writing a function that takes in an image, modifies it, and returns the modified image.
Image SomeFunction(Image img)
{
Image modified = img
// modify the clone
return modified
}
Now in the main code block, setting an image variable to be the returned clone throws off an error: “Unable to determine the physical size of this image expression”. Passing an image is obviously not like in another language, say Python. Could someone please help?
New contributor
James Cho is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.