Micono RbImageFilterUtil v0.9.0b1
for REALbasic 2 plugin

Upload: 1999/12/28

[Download]


About RbImageFilterUtil

A plugin for REALbasic 2 which packages together several image processing methods.

@


Methods

targetColor, ChnannelA, ChnannelB

Red:

&h1

Green:

&h2

Blue:

&h4

Example: Red and blue

&h1+&h4 = 5

Invert

g.mic_Invert( TargetColor as Integer ) as Integer

g: Graphics
Return: if the value is not 0, it is error.

@

Threshold

g.mic_Threshold( LowThresh as Integer, HiThresh as Integer, obscure as Integer, TargetColor as Integer ) as Integer

g: Graphics
Return: if the value is not 0, it is error.

Contrast & Brightness

g.mic_ChangeContrast( a as Double, b as Double, TargetColor as Integer ) as Integer

g: Graphics
Return: if the value is not 0, it is error.

Exsample:
pic.graphics.mic_ChangeContrast a, b, c

Y=aX+b (X: input, Y: output)

Change contrast with tone-curve

g.mic_CurveMapping( CurveMap as String, TargetColor as Integer ) as Integer

g: Graphics
Return: if the value is not 0, it is error.

CurveMapFA value of the first character to 256 character is equivalent to the output for input 0-255.

Grayscale

g.mic_Grayscale as Picture

g: Graphics

Posterization

g.mic_Posterization( Resolution as Integer, TargetColor as Integer ) as Integer

g: Graphics
Return: if the value is not 0, it is error.

Arithmetic

g.mic_ImageArithmetic( Operator as Integer, value as Double, TargetColor as Integer ) as Integer

g: Graphics
Return: if the value is not 0, it is error.

Operator:

0: Add

1: Subtract

2: Multiply

3: Divide

Image Math *Global method

mic_ImageMath( ImageA as Graphics, ChnannelA as Integer, Operator as Integer, ImageB as Graphics, ChnannelB as Integer ) as Picture

Operator:

0: Add

1: Subtract

2: Multiply

3: Divide

Image Filter

g.mic_ImageFilter( FilterType as Integer, Weight as Double, TargetColor as Integer ) as Integer

g: Graphics
Return: if the value is not 0, it is error.

FilterType:

FindEdges (conventionalType) = 0

Roberts FindEdges = 1

Sobel FindEdges = 2

Laplacian1 FindEdges = 3

Laplacian2FindEdges = 4

Laplacian3FindEdges = 5

Reduce Noise = 6

MinRankFilter = 7

MaxRankFilter = 8

WeightedAvg = 9

Dither = 10

Sharpen (conventional) = 11

Roberts Sharpen = 12

Sobel Sharpen = 13

Laplacian1 Sharpen = 14

Laplacian2 Sharpen = 15

Laplacian3 Sharpen = 16

f Sharpen = 17

Shadow North = 18

Shadow Northeast = 19

Shadow East = 20

Shadow Southeast = 21

Shadow South = 22

Shadow Southwest = 22

Shadow West = 23

Shadow Northwest = 24


Warranty and Copyright Information


Support


Copyright 1999, Micono Utilities. All rights reserved.