Allow arbitrary extrapolation methods
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- python
- Domínio
- computer-vision
Direção de pesquisa
Start by tracing the Image.transform entry point, which the issue identifies as the priority, and compare how Image.filter handles pixels outside the image. Define the supported extrapolation methods and verify that transform can apply them, including an arbitrary Python function, with tests covering the listed border behaviors and transparent output.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Whenever a function needs to extrapolate values of non-existing pixels (i.e. pixels outside of the image), it should be possible to specify the extrapolation method to use.
The extrapolation methods I consider to be most useful are:
- replicate border
- replicate border, with alpha set to 0
- arbitrary constant
- wrap around
- arbitrary Python function
See the introduction to http://docs.opencv.org/modules/imgproc/doc/filtering.html for further explanation and other extrapolation methods. There are several Pillow functions where this comes in handy. For example,
image.transform(size, PIL.Image.AFFINE, data, PIL.Image.BICUBIC, extrapolate=REPLICATE_BORDER_ALPHA0)
might produce a rotated and scaled version of the source image on top of a transparent background so you can paste this transformed image into other images easily. Another example:
image.filter(filter, extrapolate=WRAP_AROUND)
might produce a blurred image that you can use for a tiled wallpaper without ugly tile borders.
If you need to prioritize, I consider Image.transform to be more important than Image.filter. (This is because it is quite easy to work around this issue for Image.filter as soon as this is implemented for Image.transform.)
- Linguagem predominante
- Python
- Estrelas
- 14k
- Forks
- 2.6k
- Merge médio
- 1d 1h
- PRs com merge (30d)
- 205
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python-pillow/Pillow
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
python-pillow/Pillow#10590 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
python-pillow/Pillow#10589 ·
Mantenedores costumam responder em até 1 dia
-
Sun raster files with RLE encoding and odd-width rows decode shiftedTalvez já em andamento @PerryLink assumiu há 21 dias. Aberta🤖-assisted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
python-pillow/Pillow#10370 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Warn that pre-applying arabic_reshaper + python-bidi corrupts text on a Raqm buildTalvez já em andamento @Syamjith-NK assumiu há 85 dias. AbertaDocumentation Font Rendering PNG Third Party Framework
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
python-pillow/Pillow#9907 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Example code in ImageText documentation makes incorrect use of get_bbox()Talvez já em andamento @mmporong assumiu hoje. AbertaDocumentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 25/100
python-pillow/Pillow#10583 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de python-pillow/Pillow
Issues semelhantes
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finiteTalvez já em andamento @leninworld assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
DoubleML/doubleml-for-py#471 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 2 dias
-
[Bug] Default key routing (JavaStringHash) picks a different partition than the Java client for about half of keysTalvez já em andamento @0z5a assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
apache/pulsar-client-go#1575 ·
Mantenedores costumam responder em até 2 dias