# 10 Zones image Analyzer program. • ### Question

• Finally here is the program I wanted to do:

(1) it opens an image
(2) it transforms into a black and white (LDImage.EffectGray (image))
(3) it decomposes image in 10 areas of density.
(4) recolors with a specific color the 10 areas analyzed.

(5) redraws the image

purpose of program: helps to analyze distribution of lights ,like a histogram, areas of exposures of highlights and lowlights.

This program can also serve as a starting point to create a new program that would simulate Posterization effects and graphic art effects.

total process time: 33 sec.

here 2 screen capture: before and after the processing.  • Edited by Friday, March 18, 2016 3:42 PM titles
Friday, March 18, 2016 3:42 PM

• I see.   maybe you want to do is  this.  changed Litdev's  VJV917-0 Saturday, March 19, 2016 1:59 AM
• i think this line is very important:

divval= ldmath.Base2Decimal("FFFFFF",16)/10

it's the key , the 10 Zones that i am looking for , is in it !?

it divise hex number like we divide decimal number ?

Ldmath.Base2Decimal ("FFFFFF",16)  change Hex  value to decimal .  FF=255

FFFFFF  --> 255*255*255=16581375

base .....(2 binary) (8 octal) (16 hex).

divval=Ldmath.Base2Decimal ("FFFFFF",16)/10 -->  1658138

image is changed to gray scale.  and then  divided into 10 levels.

Saturday, March 19, 2016 4:45 AM

### All replies

• I see.   maybe you want to do is  this.  changed Litdev's  VJV917-0 Saturday, March 19, 2016 1:59 AM
• Hi NaochanON

but something got wrong when i tried to run it:

Smallbasic return this: Saturday, March 19, 2016 2:56 AM
• i think this line is very important:

divval= ldmath.Base2Decimal("FFFFFF",16)/10

it's the key , the 10 Zones that i am looking for , is in it !?

it divise hex number like we divide decimal number ?

Saturday, March 19, 2016 3:05 AM
• Hi NaochanON

but something got wrong when i tried to run it:

Smallbasic return this: Saturday, March 19, 2016 4:22 AM
• i think this line is very important:

divval= ldmath.Base2Decimal("FFFFFF",16)/10

it's the key , the 10 Zones that i am looking for , is in it !?

it divise hex number like we divide decimal number ?

Ldmath.Base2Decimal ("FFFFFF",16)  change Hex  value to decimal .  FF=255

FFFFFF  --> 255*255*255=16581375

base .....(2 binary) (8 octal) (16 hex).

divval=Ldmath.Base2Decimal ("FFFFFF",16)/10 -->  1658138

image is changed to gray scale.  and then  divided into 10 levels.

Saturday, March 19, 2016 4:45 AM