Questions tagged [image-masking]

132 questions
1
vote
0 answers

Bottom curved masking on Image using CSS

I am trying to achieve masking on image same as below: I tried some of the CSS here: Codepen Link using clip-path: using clip-path codepen What I tried is: HTML:

This is Test

Pathik Vejani
  • 4,263
  • 8
  • 57
  • 98
1
vote
2 answers

Image masking by coordinate or changing binary image pixel to black based on the the coordinate

I have this binary image and i want to remove the objects (convert all the white pixel to black ) that are above the (x, y) coordinate. This is the inital binary image image This is is the binary image with the x and y coordinate points plotted. I…
Yonas
  • 33
  • 5
1
vote
1 answer

Masking/clipping part of a contour plot above a specified curve with python

I have a contour plot which is produced using Triangulation/TriInterpolation and contourf, shown in the image below. I also have the two curves plotted on either side of the contour which are the boundary for where data should not go past. As can be…
1
vote
1 answer

what is a good algorithm to identify a region to fill, when user has created a free form border in an image?

I have been working to create a freeform cropping tool using Unity's Texture2D class and the mask component. Till now I have created a system with which a user can draw a freeform shape on a transparent image. I need an algorithm with which I will…
1
vote
1 answer

Mask Image with custom UIBazierPath swift

I have created UIBezierPath with custom shape then I need to make it mask for image always I got empty image here is my code First I created the path, then create image and last create my mask but it is not working here is image I need to mask it…
yasmina
  • 13
  • 3
1
vote
0 answers

Mask an Image over Video in Android

See the Example image shown above. Y is a video having chrome key color inside it(here RED Color). X is an image to be clipped on video chrome key and Output is shown in the image. Now the problem is, the chrome key (RED Color part) is moving a bit…
Kiran Maniya
  • 8,453
  • 9
  • 58
  • 81
1
vote
0 answers

How to mask image with rounded corners?

I want to use image masking or whatever method is best for this . the shape I want to create is this so, how can i accomplish something like this. i was trying to use clip path for this, but i can only make one round shape from it. i was trying to…
faraz
  • 2,603
  • 12
  • 39
  • 61
1
vote
2 answers

CSS image mask broken in Cordova for iOS 11.x?

I use -webkit-mask-image in my meteor app, like this: ... background-color: purple; -webkit-mask-image: url('images/user_plum.png'); ... It works fine in all browsers. It works fine in the cordova version on Android. It was working fine in iOS…
RealHandy
  • 534
  • 3
  • 8
  • 27
1
vote
1 answer

Masking an RGB image with Binary mask Code in matlab

I have a RgB image (MxNx3) and binary mask which is a image consisting of 0's and 1's. Anywhere that the mask is 0, I wish to make exactly 0 in the original image, while anywhere the mask is 1 I just want to leave alone. Any solutions on how to…
1
vote
1 answer

draw a line until the edge of the mask OpenCV in python

Give an image like the following image I can create a mask of this quite easily.The masked image looks like this. I use the following code to get the mask. #Convert to HSV HSV = cv2.cvtColor(I, cv2.COLOR_BGR2HSV) #Create a lower and upper…
Broomer
  • 107
  • 10
1
vote
1 answer

CSS: apply mix-blend-mode property to specific elements only

I want to use the mix-blend-mode property to make some specific SVG paths take the background image on the stroke so that the path appears as if it is an erasing path. The following code is what I have reached. However, as you can see, the mix-blend…
1
vote
1 answer

UIImage masking doesn't work (Swift, iOS 10)

Trying to mask an image with my custom mask. I think I follow the ideas correctly, but for some reason, image isn't get masked. Instead, masked image, created after masking, contains original cropped image as the mask wasn't applied. Here's the…
peetonn
  • 2,942
  • 4
  • 32
  • 49
1
vote
1 answer

Using skimage for non-rectangular image areas

Let's say I'm concerned with part of an image that I'm wanting to calculate a GLCM for that's not rectangular. How should I go about this? I've made a masking procedure that zeroes out the portion of the image that I don't care about, I just don't…
1
vote
1 answer

How to Mask Text into an Imageview in Android?

I have been trying to get the desired result as below but in-vain. I need to mask an imageview into text so that the imageview looks like text but still works as an imageview such that i can use zoom functionality in it. The image should not…
hablema
  • 540
  • 1
  • 5
  • 17
1
vote
1 answer

RMagick Masking - different background different result

I have 2 t-shirt images, the color are black and pink. i want to blend it with android logo. on the black t-shirt the result was great. but on the pink one, android image is to bright. here's my code tshirt =…
geralvin
  • 73
  • 7
1 2
3
8 9