< Back
Read-MJImageRGBPixel
Post
NAME Read-MJImageRGBPixel
SYNOPSIS
Read colour information from defined areas in images, returns RGB info about the area
SYNTAX
Read-MJImageRGBPixel -FilePath <String> [-PixelX <Int32>] [-pixelY <Int32>] [-PixelArea <Int32>]
[<CommonParameters>]
DESCRIPTION
Read colour information from defined areas in images, returns RGB info about the area
Provide a file path to an image and ???????X??????? and ???????Y??????? location In the image, this will return an RGB colour code from
that area. It????s possible to provide a pixel area to.
Default an average info from pixels will be 5 pixels +- the selected pixel.
Created by: Ispep
Date: 2016-04-20
Blog: www.Automatiserar.se
PARAMETERS
-FilePath <String>
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PixelX <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-pixelY <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-PixelArea <Int32>
Provide the area around the pixels you want to know the average from.
Required? false
Position? named
Default value 5
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>This will find the RGB colour in location X22 and Y33
Read-MJImageRGBPixel -FilePath "C:\\temp\\DemoBild2.jpeg" -PixelX 22 -pixelY 43
FilePath : C:\\temp\\DemoBild2.jpeg
PixelX : 22
PixelY : 43
PixelArea : 5
Success : True
ImageWith : 3200
ImageHeight : 1080
Red : 247
Red_Max : 254
Red_Avg : 234
Red_Min : 188
Green : 250
Green_Max : 254
Green_Avg : 240
Green_Min : 188
Blue : 252
Blue_Max : 253
Blue_Avg : 246
Blue_Min : 188
ScriptVersion : 1
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Read-MJImageRGBPixel -FilePath C:\\Temp\\DemoBild2.jpg -PixelX 22 -pixelY 43 -PixelArea 2
FilePath : C:\\Temp\\DemoBild2.jpeg
PixelX : 22
PixelY : 43
PixelArea : 2
Success : True
ImageWith : 3200
ImageHeight : 1080
Red : 247
Red_Max : 247
Red_Avg : 243
Red_Min : 239
Green : 250
Green_Max : 250
Green_Avg : 247
Green_Min : 245
Blue : 252
Blue_Max : 252
Blue_Avg : 251
Blue_Min : 251
ScriptVersion : 1
RELATED LINKS
SYNOPSIS
Read colour information from defined areas in images, returns RGB info about the area
SYNTAX
Read-MJImageRGBPixel -FilePath <String> [-PixelX <Int32>] [-pixelY <Int32>] [-PixelArea <Int32>]
[<CommonParameters>]
DESCRIPTION
Read colour information from defined areas in images, returns RGB info about the area
Provide a file path to an image and ???????X??????? and ???????Y??????? location In the image, this will return an RGB colour code from
that area. It????s possible to provide a pixel area to.
Default an average info from pixels will be 5 pixels +- the selected pixel.
Created by: Ispep
Date: 2016-04-20
Blog: www.Automatiserar.se
PARAMETERS
-FilePath <String>
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PixelX <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-pixelY <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-PixelArea <Int32>
Provide the area around the pixels you want to know the average from.
Required? false
Position? named
Default value 5
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>This will find the RGB colour in location X22 and Y33
Read-MJImageRGBPixel -FilePath "C:\\temp\\DemoBild2.jpeg" -PixelX 22 -pixelY 43
FilePath : C:\\temp\\DemoBild2.jpeg
PixelX : 22
PixelY : 43
PixelArea : 5
Success : True
ImageWith : 3200
ImageHeight : 1080
Red : 247
Red_Max : 254
Red_Avg : 234
Red_Min : 188
Green : 250
Green_Max : 254
Green_Avg : 240
Green_Min : 188
Blue : 252
Blue_Max : 253
Blue_Avg : 246
Blue_Min : 188
ScriptVersion : 1
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Read-MJImageRGBPixel -FilePath C:\\Temp\\DemoBild2.jpg -PixelX 22 -pixelY 43 -PixelArea 2
FilePath : C:\\Temp\\DemoBild2.jpeg
PixelX : 22
PixelY : 43
PixelArea : 2
Success : True
ImageWith : 3200
ImageHeight : 1080
Red : 247
Red_Max : 247
Red_Avg : 243
Red_Min : 239
Green : 250
Green_Max : 250
Green_Avg : 247
Green_Min : 245
Blue : 252
Blue_Max : 252
Blue_Avg : 251
Blue_Min : 251
ScriptVersion : 1
RELATED LINKS