Questions tagged [image-masking]

132 questions
1
vote
1 answer

Image fader with rectangular fade-in expanding from middle to edges

I'm replacing a custom Flash animation with a jQuery. The old animation used a mask that moved like a curtain opening: the center appears first and the image fades in laterally on both sides in a smooth expansion of the centered rectangular mask…
jerrygarciuh
  • 21,158
  • 26
  • 82
  • 139
1
vote
2 answers

how to create a mask for a sprite or for a texture in libgdx

I am developing on libgdx for android and the thing is that I've used masks for my sprites before (not in libgdx) to set the surrounding of my sprites to be transparent so when I draw them to the screen they show the background and not a white…
Leonso Medina Lopez
  • 777
  • 1
  • 10
  • 21
0
votes
0 answers

I want to calculate the angle on every bending position of Free hand Curve line

Note; It's a Free Hand Curve line but not a straight or Polylines so it can be more complex. I want to calculate the angle (in degree) of Free curve line on every bending position, and want to display where the curve is greater than 45, and less…
0
votes
0 answers

Date iteration for masking image collection using another image in GEE

I want to mask ImageCollection ("MODIS/061/MCD15A3H") let's call it modis using forest class from another ImageCollection ("MODIS/006/MCD12Q1") let's call this LULC. modis has images every 4 days while LULC has one image per year. I want to mask…
Anu Rai
  • 43
  • 6
0
votes
1 answer

Can't image mask with CSS

I've been trying to mask an image for a website I'm developing. Asyou'll see from the snippets I'm trying to use the mask as a logo for the home page. I'm still learning and I found this feature really interesting but when I execute the following…
LolloFP
  • 1
  • 3
0
votes
0 answers

Dynamic Masking - OpenCV (Python)

So, I'm currently developing some CNN models (using Keras) to classify images. As a first step, I have to mask each one of the images before converting it to a tensor. I was planning on adding a fixed mask, using cv2.fillConvexPoly, however, I've…
Gilmar F
  • 21
  • 3
0
votes
1 answer

Mask-image faded edges on all 4 sides with offset for scrollbars

trying to figure this out for a while. I have a paragraph inside a scrollable (both axis) div with a mask that fades top and bottom edge. However, I need to fade out also left and right edge. There's a mask offset on the right for a scrollbar, same…
0
votes
0 answers

Safari SVG mask-image lines on responsive img when changing windows size

I am using a a SVG image-mask on a responsive image. When I change window size, some strange white lines appear (only in Safari): https://www.loom.com/share/a1f43b501fab49d596da77e0721a4e21 I use this CSS code on the img: .big-image img…
0
votes
0 answers

How to create a cylindrical mask for a numpy array

I am attempting to create an array in the shape of a cylinder to mask a 3D numpy array. The goal is to remove an outer ring in the image. The image is of size 1648x1648x1420. I have figured out how to construct the cylinder and apply it element wise…
hm23
  • 1
  • 2
0
votes
0 answers

Creating Binary Mask from Coco Dataset using cocoapi and annToMask: ValueError: operands could not be broadcast together with shapes (...) (...) (...)

I am trying to create black and white masks from images from COCO Dataset, so I can train my u2net model (salient object detection). However, I am facing this error: File "D:\downloads\U-2-Net-master\U-2-Net-master\mask.py", line 25, in
0
votes
1 answer

How can I convert bounding box pixels of an image to white, and the background to black?

I have a set of images similar to this one: And for each image, I have a text file with bounding box regions expressed in normalized pixel values, YOLOv5 format (a text document with rows of type: class, x_center, y_center, width, height). Here's…
0
votes
1 answer

Why is my combined Mask masking different areas to the individual Masks over an ImageCollection in GEE?

I'm trying to perform a time-series analysis of Sentinel-2 satellite imagery over Water, and to do that I've been muddling through using functions to perform analysis on images over an Image Collection. I previously got further with my analyses with…
0
votes
0 answers

Percentage of clouds in an image

I was trying to get the percentage of clouds in an image using OpenCV: import cv2 import numpy as np import matplotlib.pyplot as plt img = cv2.imread('path/to/img') def create_clouds_mask(img_bgr): img_rgb = cv2.cvtColor(img_bgr,…
0
votes
1 answer

Find colored box in image and create a mask file

I would like to create a hotfolder for my motion camera, into which I can drop images marking areas, which should be excluded in motion recognition via a *pgm mask. On these images, there is a small area marked with a transparent box with a magenta…
0
votes
1 answer

Opencv print text with outline

I would like to render a custom text on an image using opencv, while having a white outline around the text, with the inside of the text being black. Currently I am only able to print the text in a single static color (black in this case) like…
Kyu96
  • 1,159
  • 2
  • 17
  • 35
1 2 3
8 9