Questions tagged [mask]
An image mask is a bitmap that specifies an area to paint, but not the color. In effect, an image mask acts as a stencil to specify where to place color on the page. Quartz uses the current fill color to paint an image mask.
2,839
questions
0
votes
0
answers
13
views
Is Azure internal NAT possible? [closed]
I’m trying to figure out if I can route requests for certain IP ranges from Azure to On Prem. The ask is can we mask the source IP to show as if coming from a specific range. The goal is to simply the ...
0
votes
0
answers
23
views
Swift, Custom Pixel Grid Mask Effect
How can I implement text and emoji display similar to pixel grid?
I suppose, i can use alot Views and CAShapeLayer as a Mask.
I really hope for any guess, thansk.
0
votes
1
answer
31
views
Animate SVG path to look like a flowing pipe
I'd like to use SVG and CSS to create a "flowing pipe" animation. I want to recreate the effect seen here: https://twitter.com/JohnPhamous/status/1732463692443512981
I got the basic SVG ...
0
votes
0
answers
17
views
JQuery mask v1.14.16 no longer working in Firefox 120
I am using github.com/igorescobar/jQuery-Mask-Plugin v1.14.16
I have a jquery mask on one of my fields
$("#socialInsNumber").mask("999-999-999");
It is not working with Firefox 120....
0
votes
0
answers
35
views
why does clipPath/mask become invisbile when clipped?
I've been trying to insert this background animated inside the below text (picture it just like a clipped mask in photoshop) but every time I put it inside a clipPath or mask tag it just disappears. ...
-1
votes
0
answers
54
views
How to use CSS to this border effect [duplicate]
First:
resource background image
(PNG): https://i.imgur.com/pyYfyit.png
(SVG): https://jmp.sh/s/emDkCSycZ7dfNoAOODAb
And Second effect(blue part is uncertain width):
resource background image
(...
-2
votes
0
answers
22
views
ROI from ultrasound image ellipse should make on selected ROI
How can I manually slect ROI from my image
Ultrasound Image
Mask of head region
here is example image the ellipse on second image is the selected ROI from Ultrasound image
kindly suggest easy method....
0
votes
0
answers
13
views
Why Doesn't an Exception Occur in Keras When Masking is Disabled and compute_mask() is Not Implemented in Custom Layers?
I have a question regarding the mask propagation mechanism in Keras that I don't quite understand. As far as I know, if a custom layer does not implement self.compute_mask() and has self....
0
votes
0
answers
36
views
CSS relative clip-path: path() not working (entire bg image not showing), where is the code issue?
I am building a hero element that I'm trying to make each 'piece' link to a different page, and since there is a lot of overlapping have opted for clip-path instead of masking. Here is an image ...
-1
votes
1
answer
27
views
maximal and minimal raster mask using polygons
I have a raster and a polygon, and I want to make two masks:
maximal raster: every cell inside the polygon, including all the cells that the polygon boundary touches
minimal raster: every cell inside ...
0
votes
1
answer
50
views
Convert Tensorflow Lite output into an image C++
I have created a model for image segmentation in Python with the help of Tensorflow, which provides me with a mask as output.
In Python I can simply load the model over two lines and generate an ...
-1
votes
1
answer
53
views
Unable to create a clear binary mask of an image
I want to create binary mask of an image. I am using OpenCV, however the output is not as expected. I am using the following code -
import cv2
def create_adaptive_binary_mask(image_path):
# Read ...
1
vote
1
answer
34
views
tgt_key_padding_mask in pytorch transformers BertModel
While going through the transformer documentation in PyTorch, I see that the tgt_key_padding_mask of shape (batch_size, tgt_seq_len) is used to indicate irrelevance of some parts of tgt because of ...
0
votes
1
answer
28
views
Part of the circle get cut off when a mask is applied
I would like to create a circle that has a stroke of 12 and a radius of 20 and apply a mask to it. The issue is that the circle gets cut off top, bottom, left, and right as if there was a square mask ...
0
votes
0
answers
20
views
Masking NetCDF with irregular grid using shape file
I want to clip and mask a NetCDF file to a shape file. I have read and tried several related posts on how to mask NetCDF with a shape file using python and ArcGIS. However, all of the posts and method ...
0
votes
0
answers
20
views
using Number as mask, iMask automatically modifies the input when field is blurred
const opts = {
lazy: true,
autofix: false,
min:100 ,
max:9999999,
mask: Number,
thousandsSeparator: ' ',
scale: 0,
}
}
With the above setup, if I enter 50 and then focus on another input, the ...
0
votes
1
answer
49
views
svg mask does not work in chrome but works in FF
I'm out of ideas here, I made a animated svg to mask an image using javascript, pretty simple but it does not work in chrome and edge, but in firefox it works fine, the console don't trow any errors, ...
0
votes
1
answer
28
views
Fit html text in a (rotated) container as the container would be a "mask", but without clipping
What I want to achieve looks like this (the automatic word-breaks aren't necessary):
Is this possible with pure htmland css? Or only if need be with svg or canvas object?
I tried to rotate a div and &...
0
votes
1
answer
65
views
Can I make nan times 0 equal 0? How can I mask a DataArray?
I have an xarray.DataArray, let's call it height, that I'm trying to reduce to represent only a desired region. For that, I have a second DataArray that is zero outside my region and a value up to one ...
0
votes
0
answers
37
views
How to add a background image to animated SVG
I have an animated SVG shape. I need to add a background image masked by that SVG.
Until the animation ends, the background image should be blurred.
And once the animation is finished the background ...
0
votes
0
answers
26
views
How to write a vanilla vue3 telephone mask for the input without any librabies?
Can anyone help how to write a vanilla Vue3 telephone mask for the input without any librabies ? I just can't find the pattern anywhere.
1
vote
1
answer
46
views
Merging (adding) pandas column data using column name based on other columns contents (opposite direction values)
I have a pandas dataframe that contains link information based on nodes and links ending at particular node.
To this information I would like to add information about links in opposite direction.
...
0
votes
0
answers
6
views
How to separate eyeglass lenses and frames
I extracted the glasses from the image using a segmentation model. After that, I want to separate the glasses lenses and frames. If there is a good way, please let me know.
For my image processing ...
1
vote
0
answers
55
views
Adjust the edge points of a rectangular shaped contour
I've got a mask with a contour that is shaped similarily to a rectangle.
I currently calculate four edge points of the contour with the help of opencv and it works fine (see blue dots on image below)....
0
votes
0
answers
29
views
Is possible apply a mask in a Quad obj (Unity)
everyone. I'm working on an SM project, but in my logic, my elements use a Mesh Renderer instead of a Sprite Renderer, and now I'm having difficulties applying a mask to them.
Alright, I tried to use ...
0
votes
1
answer
37
views
Bad rendering of svg in powerpoint or word when using <mask> tag in the svg
When inserting a very simple svg image containing the <mask> tag into PowerPoint or Word, the outlines of the shapes in the mask are very degraded. It's even very bad when you stretch the image.
...
0
votes
0
answers
15
views
Masking brain tumor with mrcnn
I'm trying to recreate this one project on GitHub to mask a brain tumor using MRI scan. However I am running into a few problems here since the code that I adapt did not work quite well. Everything ...
0
votes
0
answers
58
views
More than one custom value accessor on Reactive Form with Material Datepicker and Ngx Mask
I am trying to create a Reactive Form with Material Datepicker and Ngx Mask
<mat-form-field [ngClass]="{ 'mat-datepicker-opened': picker.opened }">
<mat-label>Fecha</mat-...
0
votes
0
answers
28
views
How to use svg clipping mask to animate circles?
I want to create circles inside lenses that move inside lenses when slick slider transform.
What's the correct way to do it?
enter image description here
I used svg and clip-path with mask but the ...
1
vote
2
answers
80
views
Pandas Boolean Mask for Columns that Contain String
Python newbie here, trying to create a boolean mask for subsetting dataset. I would appreciate any guidance on how to make this mask work and what I am doing wrong. Thanks!
My df looks like this:
...
0
votes
0
answers
37
views
Masking an image with all elements with a class
I have an image gradient that covers the entire body and I have a grid of more images (there are 4 in each row). I want all of the images in the grid to have the gradient overlay, but hide the rest of ...
1
vote
0
answers
31
views
How to combine binary mask of different shapes
I'm trying to combine the binary mask of humans, but masks are of different shape.
Suppose in a frame there are four humans, I can get the individual mask for each of the four humans.
I want to ...
0
votes
0
answers
59
views
How to make a Blur gradient SVG-CSS
I tried to create two divs, applying a gradient to the upper one, and adding a backdrop filter to the lower one. It resulted in a continuous blur effect, which doesn't suit my needs.
[1]: https://i....
0
votes
0
answers
42
views
Compare numpy 3D array with 2D array aisle by aisle
I have large amount of m-by-n 2D arrays that need to be compared with one reference m-by-n 2D array (of course it's not all 1),
arrays = np.random.rand(m,n,k)
array_ref = np.ones((m,n))
result = np....
1
vote
2
answers
61
views
Given a list of lists of two timestamps, how to check if the index of a dataframe is inside those datetime range?
I have a list of lists of two elements with type pd.Timestamp, e.g.:
intervals = [
[pd.Timestamp('2023-01-01 02:00:00'), pd.Timestamp('2023-01-01 03:00:00')],
[pd.Timestamp('2023-01-01 05:00:...
1
vote
0
answers
51
views
mask a xarray.dataset using nan values in another dataset
I have a dataset (named ds1) that includes HWI (heatwave index) data variable with dimensions of time: 365, latitude: 681, longitude: 841
I want to mask ds1 by using ds2 which has the same dimensions ...
-1
votes
2
answers
54
views
Generate counts along axis in numpy?
I am wondering if there is a numpy way to do the following with multiple axes:
Desired Input:
np.array([[1,2,3],
[4,5,5]])
Desired Output:
np.array([[0,1,1,1,0,0],
[0,0,0,0,1,2]])
...
0
votes
1
answer
36
views
Is using mask for assignment faster than for loop in pytorch?
I want to ask if using the mask to assign is faster than for loop in pytorch.
For example, we have the following two code blocks.
a = torch.tensor([-1,-1,1,1])
for i in range(len(a)):
if a[i] > ...
0
votes
0
answers
60
views
how to calculate a masked distance transform with ndimage.distance_transform_edt?
I have a 512^3 boolean array. I am currently calculating a distance transform using scipy.ndimage.distance_transform_edt. The calculation is taking quite a while (tens of seconds). I only need to know ...
0
votes
1
answer
47
views
How to apply a binary mask to a RGB image in R with imager
I have loaded in a RGB image with the imager::load.image() function.
I have also created a binary mask with the imager::threshold() function.
RGB_image Mask
I am able to apply this mask to binary ...
0
votes
0
answers
36
views
Image Appearing White Instead of Being Properly Masked
I'm trying to use a MaskImageView that contains a DraggableImageView to display an image masked by another image. However, I'm facing an issue where the image appears white instead of being properly ...
-1
votes
2
answers
107
views
I want to create a mask of a numpy array, flagging any rows that contain values in another array
I have a numpy array:
247 656 6363
13822 13818 30054
10174 25484 6553
6107 2927 6578
2904 6462 3941
16562 8692 16563
25182 6681 25181
6679 6429 3841
I want to flag ...
0
votes
0
answers
35
views
How to open a mask image as an array of pixel values consisting of only 0 or 1?
I'm going to implement a Pytorch Dataset which returns a minibatch of pairs (image, mask) in DataLoader. I've already implemented Dataset class as below :
class Dataset(data.Dataset):
def __init__(...
0
votes
0
answers
23
views
SVG Mask video and position absolute
I am trying to mask a video with an SVG. When I add the position absolute to the CSS my mask works but knocks out other elements on my page, eg. some lottie files and chages the dimensions of my ...
0
votes
3
answers
645
views
How to make my own input mask with variable value in react
Language used : Js with react, react hook form and material ui
What I want to achieve : I want to create an input with mask. the mask have static value, variables value and user value.
Here is where i ...
0
votes
1
answer
112
views
Does "conditional evaluation at the ALU" always imply no branch divergence?
This is one issue about this SO answer (as the comment said, I opened one new post to ask). I tried searching the comments for "ALU", but still can't understand why "conditional ...
1
vote
0
answers
20
views
How to appy binary mask to NeRF
I'm confusing becouse this dosn't apply binary mask for NeRF:
def forward(self, x):
input_pts, input_views = torch.split(x, [self.input_ch, self.input_ch_views], dim=-1)
h = ...
3
votes
4
answers
63
views
Matching numbers to mask it
I have a text file like below. It's a position-based text file. The positions from 13 to 30 represent bank account numbers and need to be masked with an asterisk if a number exists. What's the best ...
1
vote
2
answers
56
views
Woocommerce - phone mask on login page
i use script for phone mask on chekout page.
On chekout page i used this if (is_checkout())
I add this mask on adress page in my account use this if (is_account_page())
I need help to add this mask on ...
-1
votes
1
answer
28
views
How to superimpose mask with python
I created a IA using mask RCNN to identify specifics objects, and I need to superimpose the masks, not the image, of two or more images. Can someone help me?
I separated the masks and now i need to ...