←Select platform

MaximumValue Property

Summary
This property is updated with the maximum intensity value present in the image.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public int MaximumValue { get; } 
@property (nonatomic, assign, readonly) NSInteger maximumValue; 
public int getMaximumValue(); 
public: 
property int MaximumValue { 
   int get(); 
} 
MaximumValue # get  (MinMaxValuesCommand) 

Property Value

Value that indicates the maximum intensity value present in the image.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
public void MinMaxValuesCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, @"ImageProcessingDemo\Beauty16.jpg")); 
 
   // Prepare the command 
   MinMaxValuesCommand command = new MinMaxValuesCommand(); 
   int MinimumValue = 0; //the minimum value. 
   int MaximumValue = 0; //the maximum value. 
   //Get min/max values. 
   command.Run(image); 
   MinimumValue = command.MinimumValue; 
   MaximumValue = command.MaximumValue; 
   MessageBox.Show("The Minimum Value is : " + MinimumValue.ToString() + ", The Maximum Value is : " + MaximumValue.ToString()); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.11.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.