Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
ImageTools[Threshold] - perform threshold operation on a grayscale image
Calling Sequence
Threshold( img, thr, opts )
Parameters
img
-
Image; input image
thr
(optional) realcons; value of the threshold
opts
(optional) equation(s) of the form option = value; specify options for the Threshold command
Description
The Threshold command performs a threshold operation on a grayscale image.
The img parameter is the input image. It must be of type GrayImage.
The optional thr parameter specifies the threshold. If not specified, a threshold is computed using Otsu's method.
The effect of the threshold operation can be specified by the method option, by specifying whether to threshold pixels above the threshold, below the threshold, or both.
The options high and low specify the new intensity values.
Options
low = float
Specifies the value that all pixels that fall below the threshold are set to. The default value is 0.0.
high = float
Specifies the value that all pixels that fall above the threshold are set to. The default value is 1.0.
method = above, below, or both
Specifies how the threshold operation is performed. Specifying method = above causes all the pixels that fall above the threshold to be set to the value specified by the high option, and the pixels that fall below the threshold retain their value. Specifying method = below causes all the pixels that fall below the threshold to be set to the value specified by the low option, and the pixels that fall above the threshold retain their value. Specifying method = both, which is the default value, causes all the pixels that fall below the threshold to be set to the value specified by the low option, and all the pixels that fall above the threshold to be set to the value specified by the high option.
Examples
See Also
GrayImage, ImageTools
References
Otsu, N. "A threshold selection method from gray level histograms." IEEE Trans. Systems, Man and Cybernetics, Vol. 9. (1979).
Download Help Document