How to select 100 highest coefficient from Curvelet subband image

Input image size is 256x256 How to calculate number of levels required for this image size. How to select 100 highest coefficient from Curvelet subband image.

 Respuesta aceptada

There are a couple ways you can do this depending on how you want to deal with repeated values. Here's a solution that finds indices for the 5 largest values (which could include repeated values):
[sortedValues,sortIndex] = sort(A(:),'descend');
maxIndex = sortIndex(1:5);
Here's a solution that finds the 5 largest unique values, then finds all elements equal to those values:
sortedValues = unique(A(:));
maxValues = sortedValues(end-4:end);
maxIndex = ismember(A,maxValues);

2 comentarios

Thank u. It works fine.
hi , please who knows how can i get the coefficients of curvelet transform from an image ?

Iniciar sesión para comentar.

Más respuestas (1)

Categorías

Más información sobre Denoising and Compression en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Mayo de 2015

Comentada:

el 16 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by