[SOLVED]Image Heuristics

Posted on
Mon Jan 20, 2014 3:11 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

[SOLVED]Image Heuristics

I have a set of images that relate to a lights brightness.

image+.png
image+1.png
image+10.png

and on up to image+100.png in increments of 10.

The idea is to always show an image if the light on, e.g. any brightness from 1 to 100.
What I'm finding is that when the light brightness is at 2 no image will show. All other
numbers seem to work fine, rounding to the nearest available image number.

More a curiosity than a problem as I could easily add the image+2.png but
if there's something I'm missing on the logic I'd appreciate any info on it.

I added the image+1.png thinking it would force it to always show an image below 10.

Thanks,

Carl

Posted on
Mon Jan 20, 2014 4:10 pm
jay (support) offline
Site Admin
User avatar
Posts: 18221
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Image Heuristics

The image+1.png should show - are you sure it's not?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jan 20, 2014 4:18 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Image Heuristics

Kinda thought so.. but I've tried it a number of times, restarted Indigo Touch etc.
but a brightness of 2 won't display an image.
Again, more curious about it than it being an issue.

edit: So if you have the images +1 and +10, any variable number between them should display
one of those images?

Thanks,

Carl
Last edited by ckeyes888 on Mon Jan 20, 2014 4:25 pm, edited 1 time in total.

Posted on
Mon Jan 20, 2014 4:20 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Image Heuristics

I thought that the image heuristics rounded to the nearest multiple of 5 whenever an exact match was not found... meaning that a value of "2" without an exact match would round down to "0", bypassing the "1" image? At least, that is what I understood it to be whenever I created a slider w/ different images values and a similar requirement.

I may have mis-understood, however... definitely a possibility!

Posted on
Mon Jan 20, 2014 4:28 pm
jay (support) offline
Site Admin
User avatar
Posts: 18221
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Image Heuristics

@Rogue is correct (I had forgotten) - it goes by 5's so +0 then +5. The reason for the general algorithm is because it becomes pretty computationally intensive to allow for random numeric ranges.

However, I do see the benefit of using +1 as the low-end selector and either +0 or just the base image (+) as the zero value. I'll add it to the feature request list and the next time we're in there modifying stuff we'll look into that.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jan 20, 2014 4:31 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Image Heuristics

RogueProeliator wrote:
I thought that the image heuristics rounded to the nearest multiple of 5 whenever an exact match was not found... meaning that a value of "2" without an exact match would round down to "0", bypassing the "1" image? At least, that is what I understood it to be whenever I created a slider w/ different images values and a similar requirement.

I may have mis-understood, however... definitely a possibility!


That must be it. Guess then to cover 1 to 100 you'd need to have images for +1 thru +5 defined.

Thanks,

Carl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests