Re: [Gimp-user] loading jp2 images

2020-01-27 Thread Partha Bagchi via gimp-user-list
I don't see a reference image though I've asked for one.

On Mon, Jan 27, 2020 at 2:30 PM rich404  wrote:

> >Please let me restate the problem:
> >
> >When opening a jp2 file, gimp is opening only one layer, even though
> >the headers
> >are showing four bands and at least 2 layers...
> >r,
> >max
>
> Interesting, now that there is a reference image.
>
> Using ImageMagick (IM) identify - the jp2 is 8 bit grayscale with alpha.
> AFAIK
> IM uses the same libopenjp2 library as Gimp.
>
> However, using XnViewMP the image displays as RGB. Converts to a large tiff
> (with alpha) which does open (with complaints) by Gimp 2.10.14 (using
> kubuntu
> 18.04)
>
> At least that will get the image into Gimp.
>
> Attachments:
> * https://www.gimpusers.com/system/attachments/1352/original/jpeg2000.jpg
>
> --
> rich404 (via www.gimpusers.com/forums)
> ___
> gimp-user-list mailing list
> List address:gimp-user-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
> List archives:   https://mail.gnome.org/archives/gimp-user-list
>
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Project Question

2020-01-27 Thread Scott Jacobs via gimp-user-list
I have used Hugin quite a bit (but by no means an expert),
and it does all 4 steps quite well, normally.
(if any of the exposures is WAY different in light level, you might
want to use GIMP on that one to bring it closer to the others.)
Once it Aligns the photos, you can move the conglomeration around
to straighten it, try a different projection, and then crop to what looks
good.
If things don't align as well as you like, you can add control points. 
I have even thrown it four photos that were actually a vertical panorama,
and it figured it out and aligned perfectly on its own...

>There are four steps, whichever program you use:
>(1) combine all the images into one big image, e.g.one per layer (File-
> ->open as layers in gimp)
>(2) correct for rotation and make obvious exposure corrections to the
>photos - this is especially necessary if the lighting, focus, or camera
>settings such as exposure time and aperture varied between shots at
>all;
>(3) determine known common points in each pair of pictures and move
>them to connect at these points, using perspective and barrel distort
>as needed
>(4) correct colour casts, darkness etc between separate parts of the
>joined-up image and crop away the uneven edges.

>Hugin will do step 3, which is the hardest part.
>The others, you can do in gimp.
>
>Liam (slave ankh)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] loading jp2 images

2020-01-27 Thread rich404
>Please let me restate the problem:
>
>When opening a jp2 file, gimp is opening only one layer, even though
>the headers
>are showing four bands and at least 2 layers...
>r,
>max

Interesting, now that there is a reference image.

Using ImageMagick (IM) identify - the jp2 is 8 bit grayscale with alpha. AFAIK
IM uses the same libopenjp2 library as Gimp.

However, using XnViewMP the image displays as RGB. Converts to a large tiff
(with alpha) which does open (with complaints) by Gimp 2.10.14 (using kubuntu
18.04)

At least that will get the image into Gimp.

Attachments:
* https://www.gimpusers.com/system/attachments/1352/original/jpeg2000.jpg

-- 
rich404 (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] loading jp2 images

2020-01-27 Thread mlorenzo2408
>This is simply not true. GIMP has been able to open jp2 files for
>quite some time.
>
>It simply means that you're missing jp2 filetype from your GIMP build.
>
>On Mon, Jan 27, 2020 at 10:26 AM Adrian Midgley via gimp-user-list <
>gimp-user-list@gnome.org> wrote:

Please let me restate the problem:

When opening a jp2 file, gimp is opening only one layer, even though the headers
are showing four bands and at least 2 layers...
r,
max

-- 
mlorenzo2408 (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] loading jp2 images

2020-01-27 Thread mlorenzo2408
>This is simply not true. GIMP has been able to open jp2 files for
>quite some time.
>
>It simply means that you're missing jp2 filetype from your GIMP build.
>
>On Mon, Jan 27, 2020 at 10:26 AM Adrian Midgley via gimp-user-list <
>gimp-user-list@gnome.org> wrote:


I can open jp2 files... my problem is it loads the wrong layer and I get the
greyscale image and not the color image...
GIMP Image Properties: 
  Number of layers: 1
  Number of channels: 0


qgis raster information
Processing algorithm…
Algorithm 'Raster information' starting…
Input parameters:
{ 'INPUT' : '/data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2',
'MIN_MAX' : False, 'NOGCP' : False, 'NO_METADATA' : False, 'OUTPUT' :
'/tmp/processing_9a89c052ba9141adb2ce4ccb1d801440/691bfc0de6f54f44b98f1b1284445003/OUTPUT.html',
'STATS' : True }

GDAL command:
gdalinfo -stats /data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2
GDAL command output:
Warning 1: Empty SOT marker detected: Psot=12.



Driver: JP2OpenJPEG/JPEG-2000 driver based on OpenJPEG library

Files: /data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2

Size is 6964, 8847

Coordinate System is:

PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",

GEOGCS["GCS_WGS_1984",

DATUM["D_WGS_1984",

SPHEROID["WGS_1984",6378137.0,298.257223563]],

PRIMEM["Greenwich",0.0],

UNIT["Degree",0.0174532925199433]],

PROJECTION["Mercator_Auxiliary_Sphere"],

PARAMETER["False_Easting",0.0],

PARAMETER["False_Northing",0.0],

PARAMETER["Central_Meridian",0.0],

PARAMETER["Standard_Parallel_1",0.0],

PARAMETER["Auxiliary_Sphere_Type",0.0],

UNIT["Meter",1.0],

EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]]

Origin = (-8724668.827568912878633,4597102.853592671453953)

Pixel Size = (1.000,-1.000)

Image Structure Metadata:

INTERLEAVE=PIXEL

Corner Coordinates:

Upper Left (-8724668.828, 4597102.854) ( 78d22'30.12"W, 38d 7'30.09"N)

Lower Left (-8724668.828, 4588255.854) ( 78d22'30.12"W, 38d 3'44.93"N)

Upper Right (-8717704.828, 4597102.854) ( 78d18'44.91"W, 38d 7'30.09"N)

Lower Right (-8717704.828, 4588255.854) ( 78d18'44.91"W, 38d 3'44.93"N)

Center (-8721186.828, 4592679.354) ( 78d20'37.52"W, 38d 5'37.53"N)

Band 1 Block=4096x4096 Type=Byte, ColorInterp=Undefined

Minimum=20.000, Maximum=255.000, Mean=101.694, StdDev=40.596

Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69

Overviews: arbitrary

Metadata:

STATISTICS_MAXIMUM=255

STATISTICS_MEAN=101.69407488086

STATISTICS_MINIMUM=20

STATISTICS_STDDEV=40.59638080412

STATISTICS_VALID_PERCENT=100

Image Structure Metadata:

COMPRESSION=JPEG2000

Band 2 Block=4096x4096 Type=Byte, ColorInterp=Undefined

Minimum=35.000, Maximum=255.000, Mean=125.952, StdDev=39.031

Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69

Overviews: arbitrary

Metadata:

STATISTICS_MAXIMUM=255

STATISTICS_MEAN=125.95178002752

STATISTICS_MINIMUM=35

STATISTICS_STDDEV=39.030505404576

STATISTICS_VALID_PERCENT=100

Image Structure Metadata:

COMPRESSION=JPEG2000

Band 3 Block=4096x4096 Type=Byte, ColorInterp=Undefined

Minimum=36.000, Maximum=255.000, Mean=106.175, StdDev=27.473

Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69

Overviews: arbitrary

Metadata:

STATISTICS_MAXIMUM=255

STATISTICS_MEAN=106.17547686833

STATISTICS_MINIMUM=36

STATISTICS_STDDEV=27.473481480161

STATISTICS_VALID_PERCENT=100

Image Structure Metadata:

COMPRESSION=JPEG2000

Band 4 Block=4096x4096 Type=Byte, ColorInterp=Undefined

Minimum=0.000, Maximum=255.000, Mean=194.452, StdDev=58.036

Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69

Overviews: arbitrary

Metadata:

STATISTICS_MAXIMUM=255

STATISTICS_MEAN=194.45181971231

STATISTICS_MINIMUM=0

STATISTICS_STDDEV=58.035617609829

STATISTICS_VALID_PERCENT=100


-- 
mlorenzo2408 (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Project Question

2020-01-27 Thread Akkana Peck
Doug asks:
> > I have taken a series of photos
> > laterally across the potential area.  I now need to 'stitch' them together

Liam R E Quin writes:
> There are four steps, whichever program you use:
> (1) combine all the images into one big image, e.g.one per layer (File-
> >open as layers in gimp)
> (2) correct for rotation and make obvious exposure corrections to the
> photos - this is especially necessary if the lighting, focus, or camera
> settings such as exposure time and aperture varied between shots at
> all;
> (3) determine known common points in each pair of pictures and move
> them to connect at these points, using perspective and barrel distort
> as needed
> (4) correct colour casts, darkness etc between separate parts of the
> joined-up image and crop away the uneven edges.

(5) If the edges still don't match perfectly, use layer masks with
black/white gradients to fade out the edges of adjacent images so each
image blends into the next.

> Hugin will do step 3, which is the hardest part.
> The others, you can do in gimp.

Hugin can be hard to use and doesn't work on every collection of
photos, but when it works, it does an amazing job on steps 3 and 4
both. Definitely try it.

And Doug: when googling for more info on this technique, "panorama"
is a helpful search keyword. You should find lots of tutorials and
examples if you include that in your search.

...Akkana
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] loading jp2 images

2020-01-27 Thread Partha Bagchi via gimp-user-list
This is simply not true. GIMP has been able to open jp2 files for
quite some time.

It simply means that you're missing jp2 filetype from your GIMP build.

On Mon, Jan 27, 2020 at 10:26 AM Adrian Midgley via gimp-user-list <
gimp-user-list@gnome.org> wrote:

> That's a JPEG2000 format image.
> It allows larger colour depth and lossless compression, compared to JPEG.
>
> Gimp up to 9.2 couldn't open them.  I doubt 2.10 can.
>
> You can convert them to JPG or probably to TIF and those are both openable.
>
> On Wed, 22 Jan 2020, 22:34 mlorenzo2408,  wrote:
>
> > Hello,
> > I am trying to load a JP2 image from the USGS.
> > from the metaviewer i have:
> > BitsPerSample 8 8 8
> > Photo.ColorSpace sRGB
> > From image properties:
> > Size in pixels: 6963 X 8854 pixels
> > Color Space: Grayscale
> > Number of layers: 1
> >
> > There is a color image there, it shows in qgis.  How do i get gimp to
> load
> > the
> > color image?
> >
> > --
> > mlorenzo2408 (via www.gimpusers.com/forums)
> > ___
> > gimp-user-list mailing list
> > List address:gimp-user-list@gnome.org
> > List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
> > List archives:   https://mail.gnome.org/archives/gimp-user-list
> >
> ___
> gimp-user-list mailing list
> List address:gimp-user-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
> List archives:   https://mail.gnome.org/archives/gimp-user-list
>
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] loading jp2 images

2020-01-27 Thread Adrian Midgley via gimp-user-list
That's a JPEG2000 format image.
It allows larger colour depth and lossless compression, compared to JPEG.

Gimp up to 9.2 couldn't open them.  I doubt 2.10 can.

You can convert them to JPG or probably to TIF and those are both openable.

On Wed, 22 Jan 2020, 22:34 mlorenzo2408,  wrote:

> Hello,
> I am trying to load a JP2 image from the USGS.
> from the metaviewer i have:
> BitsPerSample 8 8 8
> Photo.ColorSpace sRGB
> From image properties:
> Size in pixels: 6963 X 8854 pixels
> Color Space: Grayscale
> Number of layers: 1
>
> There is a color image there, it shows in qgis.  How do i get gimp to load
> the
> color image?
>
> --
> mlorenzo2408 (via www.gimpusers.com/forums)
> ___
> gimp-user-list mailing list
> List address:gimp-user-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
> List archives:   https://mail.gnome.org/archives/gimp-user-list
>
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Project Question

2020-01-27 Thread Liam R E Quin
On Sun, 2020-01-26 at 15:36 -0800, Doug & Kathy Davies via gimp-user-
list wrote:
>  My
> question...can I use GIMP to get this done?

You may find hugin or another panorama stitcher is better at it. Hugin
takes a little work to get used to, but can get good results. Then
maybe use GIMP to clean up the result.

There are four steps, whichever program you use:
(1) combine all the images into one big image, e.g.one per layer (File-
>open as layers in gimp)
(2) correct for rotation and make obvious exposure corrections to the
photos - this is especially necessary if the lighting, focus, or camera
settings such as exposure time and aperture varied between shots at
all;
(3) determine known common points in each pair of pictures and move
them to connect at these points, using perspective and barrel distort
as needed
(4) correct colour casts, darkness etc between separate parts of the
joined-up image and crop away the uneven edges.

Hugin will do step 3, which is the hardest part.
The others, you can do in gimp.

Liam (slave ankh)


-- 
Liam Quin - web slave for https://www.fromoldbooks.org/
with fabulous vintage art and fascinating texts to read.
Click here to have the slave beaten.

___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list