Create a mask based on pixel values

11 Ansichten (letzte 30 Tage)
Donnell Perkins
Donnell Perkins am 16 Mär. 2020
Kommentiert: Rik am 17 Feb. 2021
I want to have my code be able to create a mask based on a range of pixel values. For example, if a part of the images' pixels range from 50-125, I want it to only mask that range

Antworten (1)

Rik
Rik am 16 Mär. 2020
IM = uint8(randi(255,100,80));
L= IM >=50 & IM <=125;
  2 Kommentare
ali eskandari
ali eskandari am 17 Feb. 2021
I want to substract two images and show the results in another figure. For instance, if the subtraction matrix has 0 value indicate the elements with black, if it has negative value show them with red and if it has positive value show with blue. How can I do that?
Rik
Rik am 17 Feb. 2021
This is not a comment, but a question. Have a read here and here. It will greatly improve your chances of getting an answer.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Author Block Masks finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by