Filter - Custom

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Post Reply
maxthegold

Filter - Custom

Post by maxthegold » Tue May 23, 2006 1:30 am

At the bottom of the drop down list of filters, below Images, Videos, Sounds, Archives and All, is the Custom filter. What is this and how do I use it?

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Complicated…

Post by Clo » Tue May 23, 2006 4:23 am

:D Hello !

• It's a filter you can configure by yourself to get special effects at will; it's pretty complicated …:|

- I've not any document for XnView to enlighten this, but I've one for a very similar filter in another free viewer (development sleeping…), I could try to dive again into … if you are not in a hurry …

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

A similar filter---

Post by Clo » Tue May 23, 2006 10:10 am

:) Hello !

- I rummaged in my PC, and found out the English text which could help you.
- I had to correct it a bit, because the original one is pretty bad…
- If you can read French, I've the same and the whole HTML¦CHM manual in which this text is included, more "comfortable" to read and study…
- Below is the dialogue of that programme, it's roughly the same than the one in XnView, though simplified about the "Save" buttons etc. The text follows as a quotation, since it's one and to save space !

——————Image
User defined effect (Custom filter).

• As you can see, there is a [7x7] array of input fields in the dialogue, in which you will define the weight of each pixel.
Below, there are fields to select the division ratio, which should be equal to the sum of all weights if the effect has not to change the luminosity of the pixel. The last parameter (bias) can change the final luminosity of the pixel.
How does it work? Let's check some examples :

0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 1 2 1 0 0
0 0 0 1 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0

Filed “Division ratio” contains 6 and “Bias” 0.

- Now, how the pixel is it calculated?
- It works in a matrix style, the main pixel marked by a bold font (in the dialogue by other field border) is the pixel which is on evaluation.
- The pixels around are pixels which are positioned in the visually same position around the main pixel.
For each channel R G B, this matrix is evaluted by multiplying the channel value by the given number and the result of these operations is then divided by the division ratio and incremented by the selected number. You can use all integer numbers (negative too) including 0.
- If the division factor is 0, the output sum isn't divided (it gives the same result as there is number 1).

- If you want to create an effect which should not do anything (so that doesn't have any importance, just to test), you can create it like below :

0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
, and you set the division ratio to 1 and the bias to 0. …
(From the original Help of Uniview© by Andrej Krutak)
• We think to add this info to our online Manual as so soon as possible, with of course the real dialogue of XnView, plus some accuracies whether Pierre could give them…;)

:mrgreen: Kind regards,
Claude
Clo
Last edited by Clo on Wed May 24, 2006 5:59 am, edited 1 time in total.
Old user ON SELECTIVE STRIKE till further notice

maxthegold

Post by maxthegold » Wed May 24, 2006 5:37 am

Thanks for the info, I'm not sure if that helps me. I'll take some time to absorb it.

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

OUPS

Post by Clo » Wed May 24, 2006 9:59 am

:) Hello !

• Sorry, I misunderstood you, you asked for the Browser, and I thought "Effects" …Image
- The Custom filtering in the Browser is related to the choices you do on that Options Page.

- However, this mistake had a benefit : I reminded that the "Effect" Custom filter description was missing in the Manual ! :P
- Finally : « It's an ill wind that blows nobody any good » :D

:mrgreen: Kind regards,
Claude
Clo
Last edited by Clo on Sat Jun 03, 2006 2:40 pm, edited 1 time in total.
Old user ON SELECTIVE STRIKE till further notice

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: OUPS

Post by marsh » Wed May 31, 2006 1:15 am

Clo wrote: - However, this mistake had a benefit : I reminded that the "Effect" Custom filter description was missing in the Manual ! :P
Thanks C,
Good luck writing about it. I don't think the function has been mentioned in forum at all. It looks like a real mind bender!

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

WIP !

Post by Clo » Sat Jun 03, 2006 1:58 pm

:arrow: marsh

:) Hello B. !

• Work In Progress ! ;)

- Indeed, it's not quite "simple-simple", but we add a basic minimum as shown above, then we'll complete the chapter as and when required while experimenting…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

User avatar
B.Douille
Posts: 182
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Filter image in browser: Custom

Post by B.Douille » Thu Jan 04, 2007 8:10 pm

Hi Claude,
Back to the original question: How to use / set the custom filter for files shown in the browser?
I can't find any entry for this in the Tools > Options pages. Even in the last version.

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Displayed objects

Post by Clo » Thu Jan 04, 2007 9:42 pm

—> B.Douille

:) Hi !

• As far as I understood, it stands for the custom file-types you state in the Options >> File list in the last 1.90 ß-6;
so, formerly File list >> Items displayed in the previous 1.90 A & ß versions…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

User avatar
B.Douille
Posts: 182
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Filter image in browser: Custom

Post by B.Douille » Fri Jan 05, 2007 12:42 am

Thanks,
This custom filter isn't that sexy, anyway. I found it and finally understood the base, how it works:
- It' uses the file extension only,
- It's more to exclude files: extensions put in the list will exclude those files from display. All other files are kept visible (or you should put all know extensions?)
- Jokers not allowed (pretty useless for extensions),
- The check-boxes allows to bypass/show the files, with additional conditions I can't match :?
Selecting Thumbnails simply bypass the filter (Browser and View mode)
Selecting Other has no visible effect (Browser and View mode)

Regards

Post Reply