Questions tagged [rescale]
155 questions
0
votes
0 answers
How to clip and map HSV color map?
I would like to clip and map certain range in HSV color map.
I have tried the below code to attempt to replicate the napari image viewer image processing but could not rescale the HSV range with my Python code.
Here is the input image:
import os,…

Stone Gold
- 35
- 7
0
votes
1 answer
How to zoom out video to a single point with ffmpeg?
I have an video and try to zoom out the entire content from 1.0 to 0.1, or literally, to a single point. I don't know the zoom value of it, so first I try to use 0.1 variant. It should decrease image 10x and fill with black background entire area…

Peter.k
- 1,475
- 23
- 40
0
votes
0 answers
convergence & large eigenvalues/ scaling issues in R trying to run glmer with continuous and factor variables
Help!
I have a nested mixed effects model I am trying to run with site and plot ("plotID") as my random effects. Multiple plots fall within sites (9 plots per site) so site is assigned as a shared number between all 9 plots within that site, i.e.…

Emma Neigel
- 1
- 2
0
votes
1 answer
How to rescale the kernel density values?
I found that some estimated kernel density values are negative. The solution to this is to set the negative values to 0 and rescale the kernel density estimation and find the closest pdf to the scaled KDE. But I don't know how to rescale the KDE.

Jimin Eom
- 9
- 3
0
votes
1 answer
ggplot2: heatmap customize legend
I am trying to plot a heatmap (colored by odds ratios) using ggplot2. The odds ratio values range from 0-200. I would like my heatmap legend to show markings corresponding to certain values (0.1, 1, 10, 50, 100, 200). This is the code I am using but…

crazytaxi
- 35
- 5
0
votes
2 answers
Is there a way to responsively (desktop) style these shapes so they align perfectly in width and height?
For a client I need to have an image and 3 shapes in the hero section. The hero always needs to be 100vh minus the height of the header. I have already worked this out in JS, but I can't figure out how to style the icons in a way they always align…
0
votes
1 answer
create own x-axis graduation
I'm looking to adapt the x-scale of my graph with the ggplot2 library
Here is a example of what I mean:
example <- data.frame(a = 1:2000, b = rnorm(n = 2000))
ggplot(example,aes(a,b)) + geom_point() + scale_x_continuous(n.breaks = 5)
Giving me this…

noehanciaux
- 17
- 3
0
votes
1 answer
How to turn an html canvas into an image and then draw that canvas onto the canvas
I'm currently working on an html canvas javascript game, and it's just about finished, but I want to scale up the canvas so the whole game is bigger. I tried using something like
var imgData = ctx.getImageData(0, 0, 300, 500);…

George
- 31
- 5
0
votes
1 answer
Within a simple linear regression in R, how do I rescale age to estimate it's beta-coefficient per per year/5 years/10 years?
This might be a bit of a dumb question, but roaming around SO and other websites I can't find a straightforward answer: I've got data on the relationship between age and a continuous…

tcvdb1992
- 413
- 3
- 12
0
votes
1 answer
How to rescale value to a specific range?
I'm trying to rescale a dataset of Rdata comprised between 0.17 and 0.00002589 to a range between 0 and 1. I would like the cumulative frequence to be equal to 1.
I tried to use the function rescale (from scales package) :
library(scales)
t…

Asûra
- 15
- 3
0
votes
1 answer
Is image rescaling between 0-255 needed for transfer learning
I am working on a classification task using transfer learning. I am using ResNet50 and weights from ImageNet.
My_model = (ResNet50( include_top=False, weights='imagenet', input_tensor=None,
input_shape=(img_height, img_width,…

Nick
- 3
- 2
0
votes
1 answer
Scale specific columns in pandas dataframe using MinMaxScaler
I want to rescale my pandas dataframe using sklearn's MinMaxScaler function, like in this tutorial.
The data I have is in mydata,
x1 x2 x3 x4 x5
Date
2015-03-01 …

Medulla Oblongata
- 3,771
- 8
- 36
- 75
0
votes
0 answers
for each month rescale values up to the month in python
I have a data frame that looks like this:
date score type
2020-01-01 1 a
2020-04-01 0 a
2020-01-01 3 a
2020-04-01 2 a
2020-11-01 3 b
2019-12-01 4 …

Carbo
- 906
- 5
- 23
0
votes
0 answers
Resizing .nii file in Python
I am trying to resize Nii files so that my program takes less computational resources, I want to rescale them from (240,240,155) to (120,120,155). I have tried using nilearn.image.resample_img module to do so however as it is seen the image below…

Dabhi
- 23
- 3
0
votes
2 answers
Rescale the values for sum of numbers in R
If I have these data frames
df1<- as.numeric(c("20", "25", "15", "50"))
df2<- as.numeric (c("15", "20", "10", "5"))
df3<- as.numeric(c("10", "7", "15", "13"))
my_list <- list(df1, df2, df3)
sum_dat <- as.numeric(c("180", "90", "5"))
Here I want…

lsangha
- 39
- 4