Mehmet Sensoy |
Hello all,
Trying to understand filter forge and using map/curve script components. Recently I had an idea to subtract one source image from multiple other sources. Is it possible to make ; Main Input : Source Image Input : Subtract Image 1 Input : Subtract Image 2...5 with map script component. Don't you think it would be useful? Thank you, Best Regards. |
|||
Posted: February 6, 2016 7:46 am | ||||
Indigo Ray
![]() |
Do you mean (series):
Output = Source - Image1 - ... - ImageN Yes, this is possible. Just do it channel-wise (R,G,B). --- Or do you mean (parallel): Output1 = Source - Image1 ... OutputN = Source - ImageN This may be possible. Map scripts, like all other components, have only one output. However, if seamless tiling is OFF, you have an unlimited plane (x,y) to work with. Or do you mean something else? |
|||
Posted: February 6, 2016 10:32 am | ||||
Mehmet Sensoy |
Hello,
Thank you for your answer; I have created 5 inputs and written this code (without a coding knowledge:)) Of course it's not working at the moment, Looking for your help.
|
|||
Posted: February 6, 2016 11:47 am | ||||
Skybase
![]() |
*kinda side track*
Shouldn't this be easier with just the default RGB math? Or am I missing something about the original idea. |
|||
Posted: February 7, 2016 7:15 am | ||||
ThreeDee
![]() |
What is the supposed final output of this filter?
Say, you were using five of the built-in images. Once you've subtracted number two from number one, you have a darker image with features from both. What do you do with the third, fourth and fifth image? |
|||
Posted: February 7, 2016 1:19 pm | ||||
Mehmet Sensoy |
Actually what I am trying to achieve is to make 5-10 level separation and using bomber component (or other) create luminosity based size or repeat difference. Say brighter areas particle size for 50 px and darker areas for 10 px.
For example there is a similar filter; https://filterforge.com/filters/471.html But additionally I would like to add custom particle and other options. By the way I'm doing luminosity separation like this ; https://filterforge.com/filters/13579.html Do you think if it is possible to minimize node amount using map scripts and so...? Thank you. |
|||
Posted: February 7, 2016 1:40 pm | ||||
Skybase
![]() |
I'm pretty sure this is faster using default FF components than the map script. Likely will depend on a bajillion factors, but this should be doable with default FF stuff. As far as I understand it, it'd be pretty flexible too.
It'd be cool to do stuff with the map script regardless. |
|||
Posted: February 7, 2016 9:48 pm | ||||
ThreeDee
![]() |
Ok, I see. I'm still not understanding where subtracting a number of images from the main image fits into this. Maybe I'm thinking about a different kind of subtracting from what you are referring to. If you mathematically subtract one image from another, by the time you've subtracted two images from a source image you pretty much have a black image as a result.
![]() |
|||
Posted: February 8, 2016 3:32 am | ||||
Rachel Duim
![]() |
Here's my take on subtractive merging. When you subtract three images together, the result is no longer in the required 0-1 range for viewing. So I added some RGB math and a gamma component to bring the image back into range. In this example I am not doing any luminance masking.
![]() Math meets art meets psychedelia. |
|||
Posted: February 8, 2016 1:49 pm | ||||
Rachel Duim
![]() |
Other things to note about this method. The order of subtraction is important and will drastically change the results. Typically at least one of the images will appear as a photo "negative". Here's the filter. No controls, just an illustration of the problem.
Subtractive Result.ffxml Math meets art meets psychedelia. |
|||
Posted: February 8, 2016 1:52 pm | ||||
Mehmet Sensoy |
Hello,
I have attached file, it's not like what I want to achieve. I want to make 10 level luminosity masking. Then attaching them to pattern components (for testing I have used checker component here..) Then multiblending them again. Like adaptive size tiling filter. So my main goal asking that question was because after luminosity masking and checker pattern some patterns overlap eachother. Only way working is using double-size repeats; for example : -100 and -80 levels : 64 repeat w/h -80 and -60 levels : 32 repeat ... But here I have faced with a problem that maximum repeat value is 100. So even I started with 2...it goes 2-4-8-16-32-64-128(!) So impossible. (This technique worked for 5 level separation) Please check my filter and help. By the way may be there would be smarter way to separate levels if so please let me know. Best Regards. 10 Level Separation.ffxml |
|||
Posted: February 8, 2016 2:53 pm | ||||
Rachel Duim
![]() |
I think there is an easier way to mask the levels. Here is a snippet showing another method.
Luminance Masking Snippet.ffxml Math meets art meets psychedelia. |
|||
Posted: February 8, 2016 3:22 pm | ||||
Mehmet Sensoy |
Thank you Rick,
I applied your method and attached file. It's getting closer, I tried to do with 5 level separation because of the reason I've mentioned in my previous post. But with 10 levels it might give better results and also I would like to scatter image(s) as particles using that technique. Any ideas? Especially for 10 level separation and repeating issue (or size increments). Thanks again. 5_Level_Luminosity_Based_Sized_Mosaic.ffxml |
|||
Posted: February 8, 2016 4:10 pm | ||||
Betis
![]() |
It's a very strange output but I do believe this is what you're after based on the filter you uploaded Mehmet.
![]() Luminance Tiling.ffxml Roses are #FF0000
Violets are #0000FF All my base are belong to you. |
|||
Posted: February 8, 2016 4:15 pm | ||||
Mehmet Sensoy |
Thank you Betis,
I'm going to check it right now, please check my latest attachment. If there would be a way to increase separation levels it would look more natural. And also as you may notice I again it's going somewhere else (but this one also looking good as well:) ) But in my first question I was wondering how to avoid overlapping tiles or mosaics. That was because I had asked subtraction methods. I guess for example on top layer - it would be darker areas and repeat amount would be 100 but when it's lighter repeat value might decrease. Till that part it's ok but I'm trying find a way to avoid overlaps. 5_Level_Luminosity_Based_Sized_Tiler.ffxml |
|||
Posted: February 8, 2016 4:37 pm | ||||
Mehmet Sensoy |
Thank you Betis,
I'm going to check it right now, please check my latest attachment. If there would be a way to increase separation levels it would look more natural. And also as you may notice I again it's going somewhere else (but this one also looking good as well:) ) But in my first question I was wondering how to avoid overlapping tiles or mosaics. That was because I had asked subtraction methods. I guess for example on top layer - it would be darker areas and repeat amount would be 100 but when it's lighter repeat value might decrease. Till that part it's ok but I'm trying find a way to avoid overlaps. 5_Level_Luminosity_Based_Sized_Tiler.ffxml |
|||
Posted: February 8, 2016 4:54 pm | ||||
Rachel Duim
![]() |
||||
Posted: February 8, 2016 6:56 pm | ||||
Rachel Duim
![]() |
||||
Posted: February 8, 2016 7:38 pm | ||||
Rachel Duim
![]() |
And here's the modified filter. Feel free to use it or discard it.
![]() 5_Level_luminosity-1bomber.ffxml Math meets art meets psychedelia. |
|||
Posted: February 8, 2016 7:41 pm |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,533 Posts
+38 new in 30 days!
15,348 Topics
+73 new in year!
21 unregistered users.