premiere testouille

This commit is contained in:
tTh
2022-12-01 12:03:22 +01:00
parent ba2c9f653c
commit 8607ff35b7
4 changed files with 57 additions and 6 deletions

36
Modules/chkpixels.f90 Normal file
View File

@@ -0,0 +1,36 @@
program chkpixels
use spitpgm
implicit none
write(0, *) "------ CHKPIXELS ------"
call test_alpha()
STOP 'BECAUSE NO CPU AVAILABLE'
contains
!-------------------------------------------------------------------
!-
subroutine test_alpha()
integer, parameter :: SZ = 32
integer, dimension(SZ, SZ) :: greymap
integer :: ix, iy, value
value = 0
do iy=1, SZ
do ix=1, SZ
greymap(ix, iy) = value
value = value + 1
enddo
enddo
call spit_as_pgm_16 (greymap, 'a.pgm')
call spit_as_pgm_eq (greymap, 'b.pgm')
call spit_as_pgm_8 (greymap, 'c.pgm')
end subroutine
end program
!-------------------------------------------------------------------