Questions tagged [subsampling]

116 questions
0
votes
1 answer

Randomly divide df in list of df into equal subsets

yesterday I already asked a similar question: R - Randomly split a dataframe in n equal pieces The answer I got is nearly what I need, but there are still problems with it. Also I thought about different other ways to get a result. This is my…
Mr.Spock
  • 511
  • 2
  • 13
0
votes
1 answer

How to disable sub-sampling when saving jpg image using PHP GD library?

I noticed that each time I save a jpg file in PHP, it is saved with sub-sampling. How to remove that? I'm using GD library.
worisi24
  • 129
  • 3
  • 11
0
votes
1 answer

How to calculate the size of the video based on given chroma information?

I was asked in the test on what will be the size of the video of 10 seconds displayed at 25fps assuming each chroma sample takes 4 bits, luminance component takes 8 bits and 4:2:0 chroma sampling is used in image object of 32x32 pixels? This was my…
HQuser
  • 640
  • 10
  • 26
0
votes
1 answer

Android zoomable constraintLayout

I'm new in android and have some questions. The idea is to simulate a book page with some images and text on it and animations that zoom on a column and after clicking a button zooms on a different part of page and so on. I have seen some good…
0
votes
1 answer

subsamplingscaleimageview clean pins image

I want to delete from my PinView all pins when changing background image. I add the pins by inserting them into a coordinate ArrayList and pin image and everything works correctly. How can I do?
0
votes
2 answers

Sample RDD element(s) according to weighted probability [Spark]

In PySpark I have an RDD composed by (key;value) pairs where keys are sequential integers and values are floating point numbers. I'd like to sample exactly one element from this RDD with probability proportional to value. In a naiive manner, this…
AlessioX
  • 3,167
  • 6
  • 24
  • 40
0
votes
1 answer

R - How to repeat data frame manipulation 100x with new random numbers and plot removals

I am a new user to R and am trying to create multiple subsamples of a data frame. I have my data assigned to 4 stratum (STRATUM = 1, 2, 3, 4), and want to randomly keep only a specified number of rows in each stratum. To achieve this, I import my…
0
votes
1 answer

Download image to subsampling scale image view

I am using Subsampling scale imageview to display a large image (approximately 3000x3000). I am aslo using picasso decoder to download image from the internet. The problem is, that when I try to get image from cache, it does not work because picasso…
Lukas Anda
  • 716
  • 1
  • 9
  • 30
0
votes
0 answers

Creating specific subsamples

So for my analysis I need to create 4 subsamples in my sample: I want to compare Voters' turnout percentage among 1) Voters with 0 other voters in the household 2) Voters with 1 other voter in the household 3) Voters with 2 other voters in the…
Can Kay
  • 1
  • 1
0
votes
1 answer

About "Chroma Subsampling" and video/image format (YUV 4:2:2, YUV 4:2:0 and so on)

Starting from a RGB image (or from a video streaming) I know how it is possible to obtain other image/video formats (for example YCrCb 4:2:2 or 4:2:0). I know the relation between the RGB pixels and the YCrCb and I know how to subsample in order to…
Leos313
  • 5,152
  • 6
  • 40
  • 69
0
votes
1 answer

Cannot set URL to SubsamplingScaleImageView URI

I have a method where a Url is queried from my database and sent as an extra before opening the activity where you can zoom, pan, etc. topLevelMessageImage.setOnClickListener(v -> { ParseQuery imageQuery = new…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
0
votes
1 answer

Subsampling compression detection

I have a new requirement within my application. All images needs to be in RGB format (no CMYK) and the subsampling should be deactivated. I have managed to check the CMYK check, but struggling with the subsampling requirement. Now I have to…
SergejK
  • 59
  • 1
  • 8
0
votes
2 answers

Subsample a matrix by selection locations with specific values within a matrix in R

I'm have to use R instead of Matlab and I'm new to it. I have a large array of data repeating like 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10... I need to find the locations where values equal to 1, 4, 7, 10 are found to create a…
Porco
  • 195
  • 1
  • 4
  • 16
0
votes
1 answer

k-fold cross validation with different sample sizes

I have a combined dataset from 3 sites and would like to know how a universal relationship compares to site specific relationships. The plan is a k-fold cross-validation. Based on this cross validated question, I need to proportionally sample from…
Dominik
  • 782
  • 7
  • 27
0
votes
2 answers

Calculating stats for random subsample using R loop

I am trying to find a way in R to randomly subset some data (proportion of suitable habitat in an area for an ecological study), calculate a mean and proportion of samples with values > 0 and then save or append those values to a dataframe. I then…
Kevin T
  • 1
  • 1