MATLAB Answers

How to take Image as Input in a function

7 views (last 30 days)
Talal Waseem
Talal Waseem on 31 Mar 2020
Commented: Talal Waseem on 1 Apr 2020
Im trying to make a function that takes a image of any type (png,jpeg etc) and then performs some task on them. But i cannot figure how to take the image as input in the function. Please help :)

  0 Comments

Sign in to comment.

Answers (1)

Cris LaPierre
Cris LaPierre on 31 Mar 2020
You'd have to first load the image into MATLAB and store it in a variable. You can then pass that variable as input to your function.
Here's the link to a doc page on importing images.

  1 Comment

Talal Waseem
Talal Waseem on 1 Apr 2020
figured it out thanks to you! Cheers

Sign in to comment.

Sign in to answer this question.

Products


Release

R2018a