Answered by:
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 YLedEditor Friday, March 18, 2016 3:42 PM titles
Friday, March 18, 2016 3:42 PMAnswerer
Answers
-
I see. maybe you want to do is this. changed Litdev's VJV917-0
- Edited by NaochanONEditor Saturday, March 19, 2016 2:01 AM
- Proposed as answer by Ed Price - MSFTMicrosoft employee Saturday, March 26, 2016 6:37 AM
- Marked as answer by WhTurner33Editor Friday, April 15, 2016 5:12 PM
Saturday, March 19, 2016 1:59 AMAnswerer -
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.
- Edited by NaochanONEditor Saturday, March 19, 2016 12:09 PM 255*255*255=16581375
- Proposed as answer by Ed Price - MSFTMicrosoft employee Saturday, March 26, 2016 6:37 AM
- Marked as answer by WhTurner33Editor Friday, April 15, 2016 5:12 PM
Saturday, March 19, 2016 4:45 AMAnswerer
All replies
-
I see. maybe you want to do is this. changed Litdev's VJV917-0
- Edited by NaochanONEditor Saturday, March 19, 2016 2:01 AM
- Proposed as answer by Ed Price - MSFTMicrosoft employee Saturday, March 26, 2016 6:37 AM
- Marked as answer by WhTurner33Editor Friday, April 15, 2016 5:12 PM
Saturday, March 19, 2016 1:59 AMAnswerer -
Hi NaochanON
thanks for your solution !
but something got wrong when i tried to run it:
Smallbasic return this:
Saturday, March 19, 2016 2:56 AMAnswerer -
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 AMAnswerer -
Hi NaochanON
thanks for your solution !
but something got wrong when i tried to run it:
Smallbasic return this:
download Litdev's extension beta version . Its' here Litdev.co.uk
- Edited by NaochanONEditor Saturday, March 19, 2016 4:24 AM
- Proposed as answer by Ed Price - MSFTMicrosoft employee Saturday, March 26, 2016 6:37 AM
Saturday, March 19, 2016 4:22 AMAnswerer -
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.
- Edited by NaochanONEditor Saturday, March 19, 2016 12:09 PM 255*255*255=16581375
- Proposed as answer by Ed Price - MSFTMicrosoft employee Saturday, March 26, 2016 6:37 AM
- Marked as answer by WhTurner33Editor Friday, April 15, 2016 5:12 PM
Saturday, March 19, 2016 4:45 AMAnswerer