Filter löschen
Filter löschen

i have got this answer when i tried to run it, MATLAB shows mw some error and I don't know how to solve it. so if someone can tell me what to do or give me another solution

1 Ansicht (letzte 30 Tage)
my code
the errors
  2 Kommentare
Dyuman Joshi
Dyuman Joshi am 14 Feb. 2023
Is the file 'image.jpg' in the current directory, where MATLAB is operating? If not, move the file into the current directory.
Type 'pwd' in your command window to find out what the current directory is.
Walter Roberson
Walter Roberson am 14 Feb. 2023
use ls() to see what is in your current directory.
Also, do not bitget on the result of the dec2bin. Either bitget on the original binary image, or else use indexing on the result of dec2bin

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Bhanu Prakash
Bhanu Prakash am 17 Feb. 2023
Bearbeitet: Bhanu Prakash am 23 Feb. 2023
Hi Maryan,
As per my understanding, you are trying to perform Bit-slicing technique on an image “image.jpg” and extract/display the resulting plane images as separate MATLAB images.
Based on my observation on the error message, the error is occurring while reading the image using “imread” function. To avoid the error, the image file “image.jpg” must be present in the MATLAB path or the complete location of the file needs to be passed as an argument to the “imread” command.
You can access the related documentation of “imread” command and “adding folders to MATLAB path” here
Hope this answer helps you.
Thanks,
Bhanu Prakash.

Image Analyst
Image Analyst am 24 Feb. 2023
See my attached bit viewing program.

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by