Borrar filtros
Borrar filtros

i have a lena image of 512*512*3 .i want to display only the first row of entire image.and then find the probability of each pixel values in first row. i.e how many time a particular pixel value repeats can any one help

1 visualización (últimos 30 días)
.

Respuestas (1)

KSSV
KSSV el 13 de Mzo. de 2018
A = randi([-5 5],10,10) ;
% probability of 3 appearing in first row
A1 = A(1,:)
P = nnz(A1==3)/10

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by