Is there a code to replace image toolbox function 'ind2gray'?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Denni Purcell
el 16 de Mzo. de 2016
Respondida: Walter Roberson
el 16 de Mzo. de 2016
I am using the 'ind2gray' function of the image processing toolbox and our licence is due to expire. Considering this is the only function of the tool box used I am wondering if there is a code to replace it?
0 comentarios
Respuesta aceptada
Walter Roberson
el 16 de Mzo. de 2016
Use the formula shown in http://www.mathworks.com/matlabcentral/answers/159282-convert-from-rgb-to-grayscale-without-rgb2gray to convert your map into grayscale. Then use the indices to index that grayscale data. If the indices are floating point then use the indices directly; if the indices are uint8() or uint16() then double() and add 1 and index with that.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!