Questions tagged [image-masking]

132 questions
15
votes
1 answer

How to cut random holes in SKSpriteNodes

Aside from the fact that the question asked here : Draw a hole in a rectangle with SpriteKit? has not satisfactorily been answered in its own right, the most significant difference between the two is that this question requires an absence of…
Confused
  • 6,048
  • 6
  • 34
  • 75
9
votes
3 answers

React Native - add a masked circle overlay over image

How do I go about adding an opaque circular overlay over an image in React Native? Similar to the instagram image picker: as trivial a task this may seem, I've had a world of trouble replicating this. Any suggestions?
John Jackson
  • 900
  • 2
  • 12
  • 28
7
votes
4 answers

Displaying multiple masks in different colours in pylab

I've an array that includes decent observations, irrelevant observations (that I would like to mask out), and areas where there are no observations (that i would also like to mask out). I want to display this array as an image (using pylab.imshow)…
user1824335
  • 85
  • 2
  • 7
5
votes
1 answer

Why is CSS mask-image not working with no-repeat?

I have a SVG and I'd like to change its color to red on some event, but you can't do that with SVG as a background-image, so you have to use CSS image-mask. I'm using PHP to echo my CSS onto the style attribute of the div: $jfid =…
weegee
  • 3,256
  • 2
  • 18
  • 32
5
votes
1 answer

Apply gradient mask on image that already has transparency with ImageMagick?

I've got a PNG image with transparency: original.png Now I want to use ImageMagick to apply a diagonal gradient to its alpha channel. I mean so that its opacity remains in the top left corner, and gradually fades out to completely transparent in…
RocketNuts
  • 9,958
  • 11
  • 47
  • 88
5
votes
2 answers
5
votes
2 answers

Remove receipt image border using ImageMagick

I'm using ImageMagick service to pre-process the receipt image before using tesseract-OCR engine to extract texts. I need to remove the background of the receipts. I've gone through masking to remove the border here. But I'm unable to create the…
Sanjay Sharma
  • 232
  • 1
  • 9
4
votes
0 answers

Drawing stroke lines around mask: Alpha mask or graphics mask (pixi.js)?

I would like to draw a stroke line around a mask element. The idea is to have a rounded rectangle displaying an image and a stroke line around it. I am using pixi and tried something like this: // ui is my ui object ui.thumbnail = new…
user305883
  • 1,635
  • 2
  • 24
  • 48
4
votes
3 answers

Image Segmentation with TensorFlow

I am trying to see the feasibility of using TensorFlow to identify features in my image data. I have 50x50px grayscale images of nuclei that I would like to have segmented- the desired output would be either a 0 or 1 for each pixel. 0 for the…
J_K
  • 43
  • 1
  • 1
  • 6
4
votes
1 answer

How to make bottle appear to be standing still

I have created a bottle with a label inside of a div that automatically scrolls back and forth as the div scrolls the bottle and label appear to be rotating. Below is a demo along with the code in a JSFiddle. https://jsfiddle.net/pkfxqmLs/
Isaac Byrne
  • 603
  • 1
  • 7
  • 19
4
votes
2 answers

iOS Capture screen, then crop and mask the result image

In my application, I want to do the following steps: 1 - Capture the screen, this part is no problem for me, I'm using the following code: - (UIImage *)captureScreen { UIGraphicsBeginImageContextWithOptions(self.view.frame.size, YES, 0.0f); …
Hanon
  • 3,917
  • 2
  • 25
  • 29
3
votes
2 answers

HTML canvas, use greyscale image as mask

I'm trying to apply a mask as it works in Photoshop. Black is transparent, white is visible. However, the composite modes don't allow for this, I think. I can only find modes where it uses the alpha channel, but I'd like to use a jpg for smaller…
nizzle
  • 1,036
  • 2
  • 10
  • 23
3
votes
2 answers

How can I clip and transform an image, adding rounded corners and perspective?

How can I use HTML and CSS to make a div with an image inside it that is clipped and masked so that it looks like the following: I've been trying to find a way to do this for about 2 hours now and got nowhere so I was just hoping someone could…
geoffs3310
  • 5,599
  • 11
  • 51
  • 104
3
votes
2 answers

QT : Masking an image - Suggestions?

I dont know if I am using the correct term here. However this is what I am trying to achieve and I would like some suggestions on how I could achieve that. I want to have a circle with border visible. Now here is the hard part and something I dont…
MistyD
  • 16,373
  • 40
  • 138
  • 240
2
votes
1 answer

Preprocessing layers with seed not producing the same data augmentation for images and masks

I'm trying to create a simple preprocessing augmentation layer, following this Tensorflow tutorial. I created this 'simple' example that shows the problem I'm having. Even though I'm initializing the augmentation class with a seed, operations…
1
2 3
8 9