Questions tagged [masking]

Force user input to conform to given rules.

Input masking restricts inputs for a given UI element without actually performing validation. Instead of collecting and validating user input, the masking approach restricts the inputs that a user can make in the first place.

An example of this would be a text field that is set to accept telephone numbers from a given country: instead of collecting digits and letters, and then validating them against the format, an input-masked field will only allow digits to be input, and will only accept them in an order that forms a valid input.

When dealing with arrays / matrices 'masking' means to ignoring certain parts of the array an only use the unmasked elements for further calculations.

1153 questions
5
votes
1 answer

Masking an image in Swift using CALayer and UIImage

I'm programming in Swift. I want to mask an image using CALayer and UIImage. I'm creating my mask image programmatically. The created mask image is a UIImage and works fine when I view it on its own. But when I use it as a mask the whole screen…
user2732722
  • 615
  • 1
  • 10
  • 22
5
votes
2 answers

CSS circle mask

I am looking to create a dark mask at the bottom of a circle that is contained in the main circle. can you do this using css masks? Please see fiddle
user2965875
  • 701
  • 5
  • 11
  • 19
5
votes
1 answer

Is it possible mask input using a different placeholder?

Since my form has no labels, I would like to be able to use a different placeholder with Angular and Angular-UI-Utils-Mask:
Antonio Carlos Ribeiro
  • 86,191
  • 22
  • 213
  • 204
5
votes
2 answers

How do I intersect two smooth shapes in OpenGL?

I've successfully drawn two smooth shapes in OpenGL using a routine that generates a triangle strip whose outermost edge line has all its vertices at alpha 0. Now I want to intersect them, but I always seem to lose one shape's smooth edges. Here's…
Dan Halliday
  • 725
  • 6
  • 22
5
votes
1 answer

vml clipping mask

I am trying to create a clipping mask in VML that would correspond to clip-path in SVG? Is that possible? Based on numerous, but fairly limited, examples I have tried drawing the shape:
Jovan Perovic
  • 19,846
  • 5
  • 44
  • 85
5
votes
4 answers

Efficient URL masking/cloacking/hiding in existing ASP.NET 4 solution

I have a current system using IIS 6 and 7, written in ASP.NET with C# in .NET 4. My purpose is to hide the url completely (as per client request). i.e. https://myapp.it.mydomain.com/Secure/folder1/folder2/folder3/someView.aspx must be…
ericosg
  • 4,926
  • 4
  • 37
  • 59
4
votes
2 answers

Masking text for transparency in CSS (cross-browser, not IE-6 or lower)

What I need is a black box filled with transparent text over a background image. See this example: Is this possible? If so, how can I do it?
George Boot
  • 585
  • 2
  • 8
  • 17
4
votes
2 answers

How to not mask output in GitHub Actions?

As part of a PowerShell Script in GitHub Actions, I am trying to output a json list of objects, to later re-use as a matrix of another job. With the following command I will be writing the output: Write-Host "::set-output name=value::$( $array1 |…
4
votes
1 answer

How can I mask a text with image in Flutter?

Hello does anyone know how i can mask a text and photo in flutter? I already have my image with text on the screen. For example: my text would be Lion and my photo of these lions are behind it. How can i make a mask like you can in photoshop? See…
stefanol65
  • 53
  • 5
4
votes
2 answers

combine python list elements where value is 1 plus an offset (masking)

The goal is to find a generic method to solve the following task: I have two python lists of the same length filled with zeros and ones: detection = [0,0,1,0] # only examples, they can be of any length ground_truth = [0,1,0,0] # and the ones…
gustavz
  • 2,964
  • 3
  • 25
  • 47
4
votes
1 answer

How to mask the inputs in an LSTM autoencoder having a RepeatVector() layer?

I have been trying to obtaining a vector representation of a sequence of vectors using an LSTM autoencoder so that I can classify the sequence using a SVM or other such supervised algorithms. The amount of data is preventing me from using a fully…
Sounak Ray
  • 303
  • 1
  • 3
  • 9
4
votes
1 answer

Get a Image Mask of the Differences Between Two Images Emgu CV

I was wondering how to take two different gray images and create a mask of the differences between the two. Any help would be much appreciated.
clcrutch
  • 61
  • 2
  • 5
4
votes
2 answers

Is it possible to URL mask a domain name with a different one using mod_rewrite?

Here is the scenario - I have a website where customer's websites run under mine. So as an example, my domain is www.mainsite.com and a customer's website would be www.customer1.com --- but when someone goes to customer1.com, the index.html file…
katura
  • 2,177
  • 14
  • 39
  • 48
4
votes
2 answers

Cannot assign values to numpy array using 3D masking and indexing

I have an 3D array that is a mask. Additionally, I have some indices that encode where (array position) some values should be saved. Everything seems to be working fine, except that the output matrix is still empty after assigning the values to the…
seralouk
  • 30,938
  • 9
  • 118
  • 133
4
votes
4 answers

Input Masking for indian currency In Jquery dyanamic Input field

I want show masking as per the Indian currency while writing in input box. I am using InputMask jquery for masking : https://github.com/RobinHerbots/Inputmask I want that wherever users tries to write down amount in Text Input then it should add…
Yagnik Detroja
  • 921
  • 1
  • 7
  • 22