% 빼고 center crop
2016.10.22 20:43
set /a width = 128 * %1 / (100-%1)
set /a rwidth= 25600 / (100-%1)
:treeProcess
rem Do whatever you want here over the files of this subdir, for example:
for %%f in (*.jpg) do (
c:\imagemagick\convert "%%f" -set option:distort:viewport "%%[fx:min(w,h)]x%%[fx:min(w,h)]+%%[fx:max((w-h)/2,0)]+%%[fx:max((h-w)/2,0)]" -filter point -distort SRT 0 +repage "%%f"
c:\imagemagick\convert.exe -resize %rwidth%x%rwidth% "%%f" "%%f"
c:\imagemagick\convert.exe -crop 256x256+%width%+%width% "%%f" "%%f"
)
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1671 | git 특정 버젼 | WHRIA | 2020.07.11 | 34 |
1670 | naver rexnet clova AI [1] | WHRIA | 2020.07.04 | 228 |
1669 | sql python | WHRIA | 2020.07.01 | 180 |
1668 | modprobe | WHRIA | 2020.06.29 | 6432 |
1667 | tab 구조 html | WHRIA | 2020.06.28 | 79 |
1666 | imagenet classification SOTA | WHRIA | 2020.06.27 | 1398 |
1665 | 할일 | WHRIA | 2020.06.24 | 1464 |
1664 | caffe hdf5 error | WHRIA | 2020.06.22 | 187 |
1663 | resnest50 caffe | WHRIA | 2020.06.21 | 163 |
1662 | reddit downloader | WHRIA | 2020.06.21 | 204 |
1661 | 바이두 | WHRIA | 2020.06.20 | 627 |
1660 | regression model [6] | WHRIA | 2020.06.18 | 167 |
1659 | MS bot framework [3] | WHRIA | 2020.06.13 | 99 |
1658 | BERT | WHRIA | 2020.06.10 | 3222 |
1657 | 영어로 숫자 표현 | WHRIA | 2020.05.28 | 4447 |